aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/profilewidget2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/profile/profilewidget2.cpp')
-rw-r--r--qt-ui/profile/profilewidget2.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp
index f052c88c8..e2c2b96aa 100644
--- a/qt-ui/profile/profilewidget2.cpp
+++ b/qt-ui/profile/profilewidget2.cpp
@@ -9,6 +9,8 @@
#include <QStateMachine>
#include <QSignalTransition>
#include <QPropertyAnimation>
+#include <QMenu>
+#include <QContextMenuEvent>
ProfileWidget2::ProfileWidget2(QWidget *parent) :
QGraphicsView(parent),
@@ -216,7 +218,14 @@ void ProfileWidget2::settingsChanged()
void ProfileWidget2::contextMenuEvent(QContextMenuEvent* event)
{
-
+ // this menu should be completely replaced when things are working.
+ QMenu m;
+ m.addAction("Set Empty", this, SIGNAL(startEmptyState()));
+ m.addAction("Set Profile", this, SIGNAL(startProfileState()));
+ m.addAction("Set Add", this, SIGNAL(startAddState()));
+ m.addAction("Set Edit", this, SIGNAL(startEditState()));
+ m.addAction("Set Plan", this, SIGNAL(startPlanState()));
+ m.exec(event->globalPos());
}
void ProfileWidget2::resizeEvent(QResizeEvent* event)