diff options
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_; + }; +} |