diff options
Diffstat (limited to 'Swift/QtUI/tmp/QtRosterContextMenu.h')
-rw-r--r-- | Swift/QtUI/tmp/QtRosterContextMenu.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Swift/QtUI/tmp/QtRosterContextMenu.h b/Swift/QtUI/tmp/QtRosterContextMenu.h new file mode 100644 index 0000000..2357735 --- /dev/null +++ b/Swift/QtUI/tmp/QtRosterContextMenu.h @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2010 Kevin Smith + * Licensed under the GNU General Public License v3. + * See Documentation/Licenses/GPLv3.txt for more information. + */ + +#pragma once + +#include <QObject> + +#include "Swift/QtUI/ContextMenus/QtContextMenu.h" +#include "Swift/QtUI/Roster/QtTreeWidget.h" +#include "Swift/Controllers/UIEvents/UIEventStream.h" + +namespace Swift { + class RosterItem; + class QtRosterContextMenu : public QObject, public QtContextMenu { + Q_OBJECT + public: + QtRosterContextMenu(UIEventStream* eventStream, QtTreeWidget* treeWidget); + void show(RosterItem* item); + + private slots: + void handleRenameGroup(); + void handleEditContact(); + + private: + UIEventStream* eventStream_; + QtTreeWidget* treeWidget_; + RosterItem* item_; + }; +} |