diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-30 13:51:09 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-30 15:16:10 +0200 |
commit | 7339cc0c0a0c63576f38f0bc96c15f28967b92d1 (patch) | |
tree | fb4a4b7c1af6163efb8587b0a463633615850347 /framework/domain/outboxmodel.h | |
parent | 911fba21c3856a497073d7018bbc12f0ba7ac74d (diff) | |
download | kube-7339cc0c0a0c63576f38f0bc96c15f28967b92d1.tar.gz kube-7339cc0c0a0c63576f38f0bc96c15f28967b92d1.zip |
Indicate if the outbox is not empty
..we could of course also just hide the outbox if empty.
Diffstat (limited to 'framework/domain/outboxmodel.h')
-rw-r--r-- | framework/domain/outboxmodel.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/framework/domain/outboxmodel.h b/framework/domain/outboxmodel.h index 86821bc2..4e226223 100644 --- a/framework/domain/outboxmodel.h +++ b/framework/domain/outboxmodel.h | |||
@@ -30,6 +30,7 @@ class OutboxModel : public QSortFilterProxyModel | |||
30 | { | 30 | { |
31 | Q_OBJECT | 31 | Q_OBJECT |
32 | 32 | ||
33 | Q_PROPERTY (int count READ count NOTIFY countChanged) | ||
33 | public: | 34 | public: |
34 | enum Status { | 35 | enum Status { |
35 | PendingStatus, | 36 | PendingStatus, |
@@ -58,6 +59,10 @@ public: | |||
58 | 59 | ||
59 | void runQuery(const Sink::Query &query); | 60 | void runQuery(const Sink::Query &query); |
60 | 61 | ||
62 | int count() const; | ||
63 | signals: | ||
64 | void countChanged(); | ||
65 | |||
61 | private: | 66 | private: |
62 | QSharedPointer<QAbstractItemModel> m_model; | 67 | QSharedPointer<QAbstractItemModel> m_model; |
63 | }; | 68 | }; |