diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-10-03 18:43:52 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-10-03 18:43:52 +0800 |
commit | 697ef5940faa71d96207d532a885d20e7b0494cc (patch) | |
tree | 8326bc35b086680d7edc44e763d5d875592a527e /qrtclient | |
parent | 5567338ace1f591c6a0e7a54da0cf15667e3b462 (diff) |
Prepare rowCount property so it can be accessed in QML
Diffstat (limited to 'qrtclient')
-rw-r--r-- | qrtclient/tickethistory.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qrtclient/tickethistory.hxx b/qrtclient/tickethistory.hxx index 7d68652..2d766f6 100644 --- a/qrtclient/tickethistory.hxx +++ b/qrtclient/tickethistory.hxx @@ -63,6 +63,7 @@ namespace RTClient { class TicketHistoryList : public QAbstractListModel { Q_OBJECT + Q_PROPERTY(int rowCount READ rowCount NOTIFY rowCountChanged) public: enum TicketHistoryRoles { @@ -97,6 +98,7 @@ namespace RTClient { QHash<int, QByteArray> roleNames() const Q_DECL_OVERRIDE; signals: + void rowCountChanged(); void updated(); private: |