summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-20 09:59:01 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-20 09:59:01 +0800
commit6a5a3ba58a94b1eb4ce53ea89a54e21c53c65561 (patch)
treea62e1da7978c09c4c447f6ec9eccb9a3463a4964
parent10c50e5280e00caf7d6e75fb699e40b16735e224 (diff)
Ticket updated signal
-rw-r--r--qrtclient/ticket.hxx1
-rw-r--r--ticket.cxx1
2 files changed, 2 insertions, 0 deletions
diff --git a/qrtclient/ticket.hxx b/qrtclient/ticket.hxx
index aa3d7ef..2ad8008 100644
--- a/qrtclient/ticket.hxx
+++ b/qrtclient/ticket.hxx
@@ -40,6 +40,7 @@ namespace RTClient {
QHash<int, QByteArray> roleNames() const Q_DECL_OVERRIDE;
signals:
+ void updated();
void rowCountChanged();
private slots:
diff --git a/ticket.cxx b/ticket.cxx
index 8b46e32..461e554 100644
--- a/ticket.cxx
+++ b/ticket.cxx
@@ -44,6 +44,7 @@ namespace RTClient {
for (unsigned int i = 0; i < ticketList->length; i++)
addTicket(Ticket{ticketList->tickets[i]});
rtclient_ticket_freelist(ticketList);
+ emit updated();
}
}