diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-03-19 09:17:18 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-03-19 15:10:33 (GMT) |
commit | 580d3d49ea3df7bb1c00cb1052203d17ccaa9a8e (patch) | |
tree | c823ef404a7a70c261248c41530827caab07fc52 /Swift/QtUI/EventViewer/QtEvent.h | |
parent | 5d9a6702c244eb4ab30ce96465d9deceedfe955a (diff) | |
download | swift-contrib-580d3d49ea3df7bb1c00cb1052203d17ccaa9a8e.zip swift-contrib-580d3d49ea3df7bb1c00cb1052203d17ccaa9a8e.tar.bz2 |
Start of event viewer.
Creates a basic event viewer framework, and plugs it into the Swift controllers, so that messages are displayed (in a very ugly way). Still a long way to go.
Diffstat (limited to 'Swift/QtUI/EventViewer/QtEvent.h')
-rw-r--r-- | Swift/QtUI/EventViewer/QtEvent.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Swift/QtUI/EventViewer/QtEvent.h b/Swift/QtUI/EventViewer/QtEvent.h new file mode 100644 index 0000000..7083c6e --- /dev/null +++ b/Swift/QtUI/EventViewer/QtEvent.h @@ -0,0 +1,20 @@ +#pragma once + +#include <boost/shared_ptr.hpp> + +#include <QVariant> + +#include "Swiften/Events/Event.h" + +namespace Swift { + class QtEvent { + public: + QtEvent(boost::shared_ptr<Event> event, bool active); + QVariant data(int role); + boost::shared_ptr<Event> getEvent() { return event_; }; + private: + QString text(); + boost::shared_ptr<Event> event_; + bool active_; + }; +} |