summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-04-04 11:55:11 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-04-04 11:55:11 (GMT)
commitf1675c651a08c294447389176262ab890cc6e7b5 (patch)
tree5371b7db58ac31b22b747822b224db3565442084 /Swift/QtUI/ContextMenus/QtRosterContextMenu.h
parent03a5a0a4a6c7504acead164dc8334c36da86a888 (diff)
downloadswift-f1675c651a08c294447389176262ab890cc6e7b5.zip
swift-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.h22
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_;
+ };
+}