From 0c91d01eb26793e745138c4598cf15d9a21c0136 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 21 Mar 2017 12:11:49 +0100 Subject: 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. --- framework/domain/maillistmodel.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'framework/domain/maillistmodel.h') 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 Q_OBJECT Q_PROPERTY (QVariant parentFolder READ parentFolder WRITE setParentFolder) Q_PROPERTY (QVariant mail READ mail WRITE setMail) + Q_PROPERTY (QString filter READ filter WRITE setFilter) public: MailListModel(QObject *parent = Q_NULLPTR); @@ -70,6 +71,9 @@ public: void setMail(const QVariant &mail); QVariant mail() const; + void setFilter(const QString &mail); + QString filter() const; + private: void fetchMail(Sink::ApplicationDomain::Mail::Ptr mail); -- cgit v1.2.3