From 5567338ace1f591c6a0e7a54da0cf15667e3b462 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Wed, 2 Oct 2019 22:47:49 +0800 Subject: Ticket history long format can be set --- client.cxx | 4 ++-- qrtclient/client.hxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client.cxx b/client.cxx index 2dbf761..6711461 100644 --- a/client.cxx +++ b/client.cxx @@ -121,10 +121,10 @@ namespace RTClient { emit searchedTicket(ticketList); } - void Client::ticketHistory(int id) + void Client::ticketHistory(int id, bool longFormat) { rtclient_ticket_history_list* historyList = nullptr; - rtclient_ticket_history(&historyList, id, true); + rtclient_ticket_history(&historyList, id, longFormat); emit gotTicketHistory(historyList); } diff --git a/qrtclient/client.hxx b/qrtclient/client.hxx index b672620..e9e6b0f 100644 --- a/qrtclient/client.hxx +++ b/qrtclient/client.hxx @@ -63,7 +63,7 @@ namespace RTClient { , QString const& due = nullptr , QString const& text = nullptr); void searchTicket(QString const& owner); - void ticketHistory(int id); + void ticketHistory(int id, bool longFormat = false); signals: void loggedIn(QString const& name); -- cgit v1.2.3