forked from qt-creator/qt-creator
QmlDesigner.formEditor: adding context menu
This adds a default context menu to any tool. Change-Id: I6d7faf5e0b3a7bf131359d6ee3717135492ea5de Reviewed-on: http://codereview.qt.nokia.com/792 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
This commit is contained in:
@@ -236,6 +236,7 @@ void AbstractFormEditorTool::mouseDoubleClickEvent(const QList<QGraphicsItem*> &
|
||||
|
||||
void AbstractFormEditorTool::showContextMenu(QGraphicsSceneMouseEvent *event)
|
||||
{
|
||||
view()->showContextMenu(event->screenPos(), event->scenePos().toPoint(), true);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user