From 5f1cf5b7926c568998f213beba9d7932ef7742ef Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 27 Mar 2017 09:43:37 +0200 Subject: Use states for the account status icon --- framework/accounts/accountsmodel.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'framework/accounts/accountsmodel.h') diff --git a/framework/accounts/accountsmodel.h b/framework/accounts/accountsmodel.h index 3a2dd712..a32e2c79 100644 --- a/framework/accounts/accountsmodel.h +++ b/framework/accounts/accountsmodel.h @@ -34,6 +34,14 @@ class AccountsModel : public QIdentityProxyModel Q_PROPERTY (QByteArray accountId READ accountId WRITE setAccountId) public: + enum Status { + OfflineStatus, + ConnectedStatus, + BusyStatus, + ErrorStatus + }; + Q_ENUMS(Status) + AccountsModel(QObject *parent = Q_NULLPTR); ~AccountsModel(); @@ -43,9 +51,7 @@ public: Name = Qt::UserRole + 1, Icon, AccountId, - Status, - StatusIcon, - ShowStatus + Status }; Q_ENUMS(Roles) -- cgit v1.2.3