diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-27 09:43:37 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-27 09:43:37 +0200 |
commit | 5f1cf5b7926c568998f213beba9d7932ef7742ef (patch) | |
tree | eea6dbe854c7161dbf8d28ca6bbc0e0b8b7021de /framework/accounts/accountsmodel.h | |
parent | 2b0278a02b8bb5de9da79de395942c55449c1c59 (diff) | |
download | kube-5f1cf5b7926c568998f213beba9d7932ef7742ef.tar.gz kube-5f1cf5b7926c568998f213beba9d7932ef7742ef.zip |
Use states for the account status icon
Diffstat (limited to 'framework/accounts/accountsmodel.h')
-rw-r--r-- | framework/accounts/accountsmodel.h | 12 |
1 files changed, 9 insertions, 3 deletions
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 | |||
34 | 34 | ||
35 | Q_PROPERTY (QByteArray accountId READ accountId WRITE setAccountId) | 35 | Q_PROPERTY (QByteArray accountId READ accountId WRITE setAccountId) |
36 | public: | 36 | public: |
37 | enum Status { | ||
38 | OfflineStatus, | ||
39 | ConnectedStatus, | ||
40 | BusyStatus, | ||
41 | ErrorStatus | ||
42 | }; | ||
43 | Q_ENUMS(Status) | ||
44 | |||
37 | AccountsModel(QObject *parent = Q_NULLPTR); | 45 | AccountsModel(QObject *parent = Q_NULLPTR); |
38 | ~AccountsModel(); | 46 | ~AccountsModel(); |
39 | 47 | ||
@@ -43,9 +51,7 @@ public: | |||
43 | Name = Qt::UserRole + 1, | 51 | Name = Qt::UserRole + 1, |
44 | Icon, | 52 | Icon, |
45 | AccountId, | 53 | AccountId, |
46 | Status, | 54 | Status |
47 | StatusIcon, | ||
48 | ShowStatus | ||
49 | }; | 55 | }; |
50 | Q_ENUMS(Roles) | 56 | Q_ENUMS(Roles) |
51 | 57 | ||