diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-20 16:14:36 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-20 16:15:28 +0100 |
commit | f8b7fca3671b6458f1fac8e59769920da1e2aaea (patch) | |
tree | 9f5bf8923c2910fab0cdd2fdeb202f920703e692 /framework/accounts/accountsmodel.h | |
parent | 21ee389ee2c195ac1895c10c4d5cf9bb3dc1d3f3 (diff) | |
download | kube-f8b7fca3671b6458f1fac8e59769920da1e2aaea.tar.gz kube-f8b7fca3671b6458f1fac8e59769920da1e2aaea.zip |
Show the account status next to the account name
Diffstat (limited to 'framework/accounts/accountsmodel.h')
-rw-r--r-- | framework/accounts/accountsmodel.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/framework/accounts/accountsmodel.h b/framework/accounts/accountsmodel.h index e3c08cd4..3a2dd712 100644 --- a/framework/accounts/accountsmodel.h +++ b/framework/accounts/accountsmodel.h | |||
@@ -32,6 +32,7 @@ class AccountsModel : public QIdentityProxyModel | |||
32 | { | 32 | { |
33 | Q_OBJECT | 33 | Q_OBJECT |
34 | 34 | ||
35 | Q_PROPERTY (QByteArray accountId READ accountId WRITE setAccountId) | ||
35 | public: | 36 | public: |
36 | AccountsModel(QObject *parent = Q_NULLPTR); | 37 | AccountsModel(QObject *parent = Q_NULLPTR); |
37 | ~AccountsModel(); | 38 | ~AccountsModel(); |
@@ -50,6 +51,9 @@ public: | |||
50 | 51 | ||
51 | QHash<int, QByteArray> roleNames() const; | 52 | QHash<int, QByteArray> roleNames() const; |
52 | 53 | ||
54 | void setAccountId(const QByteArray &id); | ||
55 | QByteArray accountId() const; | ||
56 | |||
53 | private: | 57 | private: |
54 | void runQuery(const Sink::Query &query); | 58 | void runQuery(const Sink::Query &query); |
55 | QSharedPointer<QAbstractItemModel> mModel; | 59 | QSharedPointer<QAbstractItemModel> mModel; |