From 7339cc0c0a0c63576f38f0bc96c15f28967b92d1 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 30 Mar 2017 13:51:09 +0200 Subject: Indicate if the outbox is not empty ..we could of course also just hide the outbox if empty. --- framework/domain/outboxmodel.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'framework/domain/outboxmodel.h') 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 { Q_OBJECT + Q_PROPERTY (int count READ count NOTIFY countChanged) public: enum Status { PendingStatus, @@ -58,6 +59,10 @@ public: void runQuery(const Sink::Query &query); + int count() const; +signals: + void countChanged(); + private: QSharedPointer m_model; }; -- cgit v1.2.3