Commit d9315830 authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesigner: Double click in the form editor only for the left mouse button



Change-Id: I130bacab8d94ddc5b8544a1b74d662059f976aca
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 6b49ef4f
...@@ -209,11 +209,13 @@ void AbstractFormEditorTool::mouseReleaseEvent(const QList<QGraphicsItem*> & /*i ...@@ -209,11 +209,13 @@ void AbstractFormEditorTool::mouseReleaseEvent(const QList<QGraphicsItem*> & /*i
} }
} }
void AbstractFormEditorTool::mouseDoubleClickEvent(const QList<QGraphicsItem*> &itemList, QGraphicsSceneMouseEvent *) void AbstractFormEditorTool::mouseDoubleClickEvent(const QList<QGraphicsItem*> &itemList, QGraphicsSceneMouseEvent *event)
{ {
if (event->button() == Qt::LeftButton) {
FormEditorItem *formEditorItem = topFormEditorItem(itemList); FormEditorItem *formEditorItem = topFormEditorItem(itemList);
if (formEditorItem) if (formEditorItem)
view()->changeToCustomTool(formEditorItem->qmlItemNode().modelNode()); view()->changeToCustomTool(formEditorItem->qmlItemNode().modelNode());
}
} }
void AbstractFormEditorTool::showContextMenu(QGraphicsSceneMouseEvent *event) void AbstractFormEditorTool::showContextMenu(QGraphicsSceneMouseEvent *event)
......
Supports Markdown
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