From 697ef5940faa71d96207d532a885d20e7b0494cc Mon Sep 17 00:00:00 2001 From: ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ Date: Thu, 3 Oct 2019 18:43:52 +0800 Subject: Prepare rowCount property so it can be accessed in QML --- qrtclient/tickethistory.hxx | 2 ++ 1 file changed, 2 insertions(+) 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 roleNames() const Q_DECL_OVERRIDE; signals: + void rowCountChanged(); void updated(); private: -- cgit v1.3