diff options
Diffstat (limited to 'framework/domain/peoplemodel.h')
-rw-r--r-- | framework/domain/peoplemodel.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/framework/domain/peoplemodel.h b/framework/domain/peoplemodel.h index 1e9d2d01..a59e752c 100644 --- a/framework/domain/peoplemodel.h +++ b/framework/domain/peoplemodel.h | |||
@@ -34,6 +34,7 @@ class PeopleModel : public QSortFilterProxyModel | |||
34 | { | 34 | { |
35 | Q_OBJECT | 35 | Q_OBJECT |
36 | Q_PROPERTY (QVariant addressbook READ addressbook WRITE setAddressbook) | 36 | Q_PROPERTY (QVariant addressbook READ addressbook WRITE setAddressbook) |
37 | Q_PROPERTY (QString filter READ filter WRITE setFilter) | ||
37 | 38 | ||
38 | public: | 39 | public: |
39 | PeopleModel(QObject *parent = Q_NULLPTR); | 40 | PeopleModel(QObject *parent = Q_NULLPTR); |
@@ -60,6 +61,9 @@ public: | |||
60 | void setAddressbook(const QVariant &parentFolder); | 61 | void setAddressbook(const QVariant &parentFolder); |
61 | QVariant addressbook() const; | 62 | QVariant addressbook() const; |
62 | 63 | ||
64 | void setFilter(const QString &mail); | ||
65 | QString filter() const; | ||
66 | |||
63 | private: | 67 | private: |
64 | QSharedPointer<QAbstractItemModel> mModel; | 68 | QSharedPointer<QAbstractItemModel> mModel; |
65 | }; | 69 | }; |