Commit 631d960c authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner: The items of the form editor should not accept buttons

The mouse buttons are handled by the tools.

Change-Id: Ie47818e7acfe32db69d9258175580c7cdb05ed5e
Reviewed-by: Tim Jenssen's avatarTim Jenssen <tim.jenssen@qt.io>
parent d5d3c88f
......@@ -60,6 +60,7 @@ FormEditorItem::FormEditorItem(const QmlItemNode &qmlItemNode, FormEditorScene*
void FormEditorItem::setup()
{
setAcceptedMouseButtons(Qt::NoButton);
if (qmlItemNode().hasInstanceParent()) {
setParentItem(scene()->itemForQmlItemNode(qmlItemNode().instanceParent().toQmlItemNode()));
setOpacity(qmlItemNode().instanceValue("opacity").toDouble());
......
......@@ -36,6 +36,7 @@ LayerItem::LayerItem(FormEditorScene* scene)
scene->addItem(this);
setZValue(1);
setFlag(QGraphicsItem::ItemIsMovable, false);
setAcceptedMouseButtons(Qt::NoButton);
}
LayerItem::~LayerItem()
......
......@@ -35,6 +35,7 @@ ResizeHandleItem::ResizeHandleItem(QGraphicsItem *parent, const ResizeController
{
setFlag(QGraphicsItem::ItemIsMovable, true);
setFlag(QGraphicsItem::ItemIgnoresTransformations, true);
setAcceptedMouseButtons(Qt::NoButton);
}
ResizeHandleItem::~ResizeHandleItem()
......
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