summaryrefslogtreecommitdiffstats
path: root/framework/domain/maillistmodel.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/maillistmodel.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/maillistmodel.h')
-rw-r--r--framework/domain/maillistmodel.h4
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
35public: 36public:
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
73private: 77private:
74 void fetchMail(Sink::ApplicationDomain::Mail::Ptr mail); 78 void fetchMail(Sink::ApplicationDomain::Mail::Ptr mail);
75 79