diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-04-04 11:55:11 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-04-04 11:55:11 (GMT) |
commit | f1675c651a08c294447389176262ab890cc6e7b5 (patch) | |
tree | 5371b7db58ac31b22b747822b224db3565442084 /Swift/QtUI/ContextMenus/QtRosterContextMenu.h | |
parent | 03a5a0a4a6c7504acead164dc8334c36da86a888 (diff) | |
download | swift-contrib-f1675c651a08c294447389176262ab890cc6e7b5.zip swift-contrib-f1675c651a08c294447389176262ab890cc6e7b5.tar.bz2 |
Add 'remove' context menu item for rosters (not implemented).
Diffstat (limited to 'Swift/QtUI/ContextMenus/QtRosterContextMenu.h')
-rw-r--r-- | Swift/QtUI/ContextMenus/QtRosterContextMenu.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Swift/QtUI/ContextMenus/QtRosterContextMenu.h b/Swift/QtUI/ContextMenus/QtRosterContextMenu.h new file mode 100644 index 0000000..74dcb98 --- /dev/null +++ b/Swift/QtUI/ContextMenus/QtRosterContextMenu.h @@ -0,0 +1,22 @@ +#pragma once + +#include <QObject> + +#include "Swift/QtUI/ContextMenus/QtContextMenu.h" +#include "Swift/Controllers/UIEvents/UIEventStream.h" + +namespace Swift { + class QtRosterContextMenu : public QObject, public QtContextMenu { + Q_OBJECT + public: + QtRosterContextMenu(UIEventStream* eventStream); + void show(QtTreeWidgetItem* item); + + private slots: + void handleRemove(); + + private: + QtTreeWidgetItem* item_; + UIEventStream* eventStream_; + }; +} |