Commit add445e8 authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner.formEditor: adding context menu

This adds a default context menu to any tool.

Change-Id: I6d7faf5e0b3a7bf131359d6ee3717135492ea5de
Reviewed-on: http://codereview.qt.nokia.com/792Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@nokia.com>
parent fffafb97
......@@ -236,6 +236,7 @@ void AbstractFormEditorTool::mouseDoubleClickEvent(const QList<QGraphicsItem*> &
void AbstractFormEditorTool::showContextMenu(QGraphicsSceneMouseEvent *event)
{
view()->showContextMenu(event->screenPos(), event->scenePos().toPoint(), true);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment