diff options
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; |