diff options
| author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-25 16:25:02 +0800 |
|---|---|---|
| committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-25 16:25:02 +0800 |
| commit | edf7edbfc93071e90b001f36b730e31cb027a54f (patch) | |
| tree | 1311683f4fe294c2e9ab90c5b7e8370180bdfe3a /ticket.cxx | |
| parent | c1d0defeb364527218d1187b9be87872282428a8 (diff) | |
Ticket ID class member
Diffstat (limited to 'ticket.cxx')
| -rw-r--r-- | ticket.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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"} }; } |