Commit baf946f6 authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner.formEditor: disabling double click (enter component)

There is now an item in the context menu.

Change-Id: I5b7cc9ec5c374354e546a650f7c59539ca81ab29
Reviewed-on: http://codereview.qt.nokia.com/1512Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@nokia.com>
parent 1126fad9
......@@ -219,19 +219,6 @@ void AbstractFormEditorTool::mouseReleaseEvent(const QList<QGraphicsItem*> & /*i
void AbstractFormEditorTool::mouseDoubleClickEvent(const QList<QGraphicsItem*> &itemList, QGraphicsSceneMouseEvent *event)
{
FormEditorItem *formEditorItem = topFormEditorItem(itemList);
if (formEditorItem) {
ModelNode doubleClickNode = formEditorItem->qmlItemNode().modelNode();
if (doubleClickNode.metaInfo().isComponent()) {
Core::EditorManager::instance()->openEditor(doubleClickNode.metaInfo().componentFileName());
event->accept();
} else if (checkIfNodeIsAView(doubleClickNode) &&
doubleClickNode.hasNodeProperty("delegate") &&
doubleClickNode.nodeProperty("delegate").modelNode().metaInfo().isComponent()) {
Core::EditorManager::instance()->openEditor(doubleClickNode.nodeProperty("delegate").modelNode().metaInfo().componentFileName());
event->accept();
}
}
}
void AbstractFormEditorTool::showContextMenu(QGraphicsSceneMouseEvent *event)
......
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