summaryrefslogtreecommitdiff
path: root/ticket.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'ticket.cxx')
-rw-r--r--ticket.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/ticket.cxx b/ticket.cxx
index cd984c5..9518c74 100644
--- a/ticket.cxx
+++ b/ticket.cxx
@@ -1,5 +1,4 @@
#include <cstddef>
-#include <rtclient/ticket.h>
#include "qrtclient/ticket.hxx"
namespace RTClient {
@@ -18,6 +17,8 @@ namespace RTClient {
auto ticket = tickets[row];
switch (role) {
+ case IdRole:
+ return ticket.id();
case SubjectRole:
return ticket.subject();
default:
@@ -28,7 +29,8 @@ namespace RTClient {
QHash<int, QByteArray> TicketList::roleNames() const
{
return QHash<int, QByteArray>{
- {SubjectRole, "subject"}
+ {IdRole, "subject"}
+ , {SubjectRole, "subject"}
};
}