diff options
Diffstat (limited to 'Swift/QtUI/EventViewer/QtEvent.h')
-rw-r--r-- | Swift/QtUI/EventViewer/QtEvent.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Swift/QtUI/EventViewer/QtEvent.h b/Swift/QtUI/EventViewer/QtEvent.h index f429b4a..be036dd 100644 --- a/Swift/QtUI/EventViewer/QtEvent.h +++ b/Swift/QtUI/EventViewer/QtEvent.h @@ -18,8 +18,14 @@ namespace Swift { QtEvent(boost::shared_ptr<StanzaEvent> event, bool active); QVariant data(int role); boost::shared_ptr<StanzaEvent> getEvent() { return event_; }; + enum EventRoles { + SenderRole = Qt::UserRole + + }; + private: QString text(); + QString sender(); boost::shared_ptr<StanzaEvent> event_; bool active_; }; |