summaryrefslogtreecommitdiff
path: root/qrtclient/tickethistory.hxx
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-10-03 18:43:52 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-10-03 18:43:52 +0800
commit697ef5940faa71d96207d532a885d20e7b0494cc (patch)
tree8326bc35b086680d7edc44e763d5d875592a527e /qrtclient/tickethistory.hxx
parent5567338ace1f591c6a0e7a54da0cf15667e3b462 (diff)
Prepare rowCount property so it can be accessed in QML
Diffstat (limited to 'qrtclient/tickethistory.hxx')
-rw-r--r--qrtclient/tickethistory.hxx2
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: