summaryrefslogtreecommitdiffstats
path: root/framework/domain/peoplemodel.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-21 12:11:49 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-21 12:11:49 +0100
commit0c91d01eb26793e745138c4598cf15d9a21c0136 (patch)
tree53ffeb02eaf1625598e937444430e4040e17b0a4 /framework/domain/peoplemodel.h
parented09c7689f7435761611cbfd3cda98bbd79c3a5e (diff)
downloadkube-0c91d01eb26793e745138c4598cf15d9a21c0136.tar.gz
kube-0c91d01eb26793e745138c4598cf15d9a21c0136.zip
Filtering for maillistmodel and peoplemodel
Works surprisingly well and is very useful for testing. The searchbar in the maillistmodel is a temporary solution as the global searchbar has some usability issues. E.g. how do we reset the search? As an intermediate step we could just hide the searchbar and make it visible by clicking on the search button.
Diffstat (limited to 'framework/domain/peoplemodel.h')
-rw-r--r--framework/domain/peoplemodel.h4
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
38public: 39public:
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
63private: 67private:
64 QSharedPointer<QAbstractItemModel> mModel; 68 QSharedPointer<QAbstractItemModel> mModel;
65}; 69};