7#ifndef PERSONSSORTFILTERPROXYMODEL_H
8#define PERSONSSORTFILTERPROXYMODEL_H
10#include <QScopedPointer>
11#include <QSortFilterProxyModel>
12#include <kpeople/kpeople_export.h>
16class PersonsSortFilterProxyModelPrivate;
31 Q_PROPERTY(QStringList requiredProperties READ requiredProperties WRITE setRequiredProperties)
36 QStringList requiredProperties()
const;
37 void setRequiredProperties(
const QStringList &props);
39 bool filterAcceptsRow(
int source_row,
const QModelIndex &source_parent)
const override;
41 Q_INVOKABLE
void sort(
int column, Qt::SortOrder order = Qt::AscendingOrder)
override;
46 QScopedPointer<PersonsSortFilterProxyModelPrivate>
const d_ptr;
Helps filtering and sorting PersonsModel.
Definition personssortfilterproxymodel.h:28