diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-21 12:11:49 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-21 12:11:49 +0100 |
commit | 0c91d01eb26793e745138c4598cf15d9a21c0136 (patch) | |
tree | 53ffeb02eaf1625598e937444430e4040e17b0a4 /framework/domain/maillistmodel.h | |
parent | ed09c7689f7435761611cbfd3cda98bbd79c3a5e (diff) | |
download | kube-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/maillistmodel.h')
-rw-r--r-- | framework/domain/maillistmodel.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/framework/domain/maillistmodel.h b/framework/domain/maillistmodel.h index 5526a991..316ff4c6 100644 --- a/framework/domain/maillistmodel.h +++ b/framework/domain/maillistmodel.h | |||
@@ -31,6 +31,7 @@ class MailListModel : public QSortFilterProxyModel | |||
31 | Q_OBJECT | 31 | Q_OBJECT |
32 | Q_PROPERTY (QVariant parentFolder READ parentFolder WRITE setParentFolder) | 32 | Q_PROPERTY (QVariant parentFolder READ parentFolder WRITE setParentFolder) |
33 | Q_PROPERTY (QVariant mail READ mail WRITE setMail) | 33 | Q_PROPERTY (QVariant mail READ mail WRITE setMail) |
34 | Q_PROPERTY (QString filter READ filter WRITE setFilter) | ||
34 | 35 | ||
35 | public: | 36 | public: |
36 | MailListModel(QObject *parent = Q_NULLPTR); | 37 | MailListModel(QObject *parent = Q_NULLPTR); |
@@ -70,6 +71,9 @@ public: | |||
70 | void setMail(const QVariant &mail); | 71 | void setMail(const QVariant &mail); |
71 | QVariant mail() const; | 72 | QVariant mail() const; |
72 | 73 | ||
74 | void setFilter(const QString &mail); | ||
75 | QString filter() const; | ||
76 | |||
73 | private: | 77 | private: |
74 | void fetchMail(Sink::ApplicationDomain::Mail::Ptr mail); | 78 | void fetchMail(Sink::ApplicationDomain::Mail::Ptr mail); |
75 | 79 | ||