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:
Thomas Hartmann
2011-06-27 17:58:24 +02:00
parent fffafb97e9
commit add445e810

View File

@@ -236,6 +236,7 @@ void AbstractFormEditorTool::mouseDoubleClickEvent(const QList<QGraphicsItem*> &
void AbstractFormEditorTool::showContextMenu(QGraphicsSceneMouseEvent *event)
{
view()->showContextMenu(event->screenPos(), event->scenePos().toPoint(), true);
}
}