diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-02-22 15:22:22 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-02-22 15:22:22 +0100 |
commit | a9b086954e17d6f2d64ac94b225577cb0e416f4f (patch) | |
tree | e8a8350773a9b91959d9dd00f552e19cc850937c /framework/src/domain/maillistmodel.h | |
parent | e1242a5f8ad3722661b8d2fb4300736a1892c2e5 (diff) | |
download | kube-a9b086954e17d6f2d64ac94b225577cb0e416f4f.tar.gz kube-a9b086954e17d6f2d64ac94b225577cb0e416f4f.zip |
Use the new changes regarding aggregated properties.
This fixes marking partially unread threads as read.
Diffstat (limited to 'framework/src/domain/maillistmodel.h')
-rw-r--r-- | framework/src/domain/maillistmodel.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/framework/src/domain/maillistmodel.h b/framework/src/domain/maillistmodel.h index 27e8d036..f83656b9 100644 --- a/framework/src/domain/maillistmodel.h +++ b/framework/src/domain/maillistmodel.h | |||
@@ -35,7 +35,6 @@ class MailListModel : public QSortFilterProxyModel | |||
35 | Q_PROPERTY (bool showInbox READ showInbox WRITE setShowInbox) | 35 | Q_PROPERTY (bool showInbox READ showInbox WRITE setShowInbox) |
36 | 36 | ||
37 | Q_PROPERTY (QString filter READ filter WRITE setFilter) | 37 | Q_PROPERTY (QString filter READ filter WRITE setFilter) |
38 | Q_PROPERTY (bool isThreaded READ isThreaded NOTIFY isThreadedChanged) | ||
39 | 38 | ||
40 | public: | 39 | public: |
41 | enum Status { | 40 | enum Status { |
@@ -53,8 +52,6 @@ public: | |||
53 | bool lessThan(const QModelIndex &left, const QModelIndex &right) const Q_DECL_OVERRIDE; | 52 | bool lessThan(const QModelIndex &left, const QModelIndex &right) const Q_DECL_OVERRIDE; |
54 | bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const Q_DECL_OVERRIDE; | 53 | bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const Q_DECL_OVERRIDE; |
55 | 54 | ||
56 | bool isThreaded() const; | ||
57 | |||
58 | enum Roles { | 55 | enum Roles { |
59 | Subject = Qt::UserRole + 1, | 56 | Subject = Qt::UserRole + 1, |
60 | Sender, | 57 | Sender, |
@@ -96,9 +93,6 @@ public: | |||
96 | void setShowInbox(bool); | 93 | void setShowInbox(bool); |
97 | bool showInbox() const; | 94 | bool showInbox() const; |
98 | 95 | ||
99 | signals: | ||
100 | void isThreadedChanged(); | ||
101 | |||
102 | private: | 96 | private: |
103 | void fetchMail(Sink::ApplicationDomain::Mail::Ptr mail); | 97 | void fetchMail(Sink::ApplicationDomain::Mail::Ptr mail); |
104 | 98 | ||
@@ -106,6 +100,5 @@ private: | |||
106 | bool mFetchMails = false; | 100 | bool mFetchMails = false; |
107 | QSet<QByteArray> mFetchedMails; | 101 | QSet<QByteArray> mFetchedMails; |
108 | QByteArray mCurrentQueryItem; | 102 | QByteArray mCurrentQueryItem; |
109 | bool mIsThreaded = true; | ||
110 | Sink::Query mQuery; | 103 | Sink::Query mQuery; |
111 | }; | 104 | }; |