diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2019-06-12 11:36:51 +0200 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2019-06-12 11:30:11 +0000 |
commit | 0ec78b7b3effaa0fad43c4803374aba89ea09dfc (patch) | |
tree | 2e1c31f98981d11c3fc85994f2df9a5dbf8fdd37 | |
parent | f6db77a0cc56e2ec9a1a66918c52df1b319daa14 (diff) | |
download | qt-creator-0ec78b7b3effaa0fad43c4803374aba89ea09dfc.tar.gz |
QmlDesigner: Do not sync z value on root item
Setting the z value on the root item triggers side effects.
Task-number: QDS-800
Change-Id: I52021b7e3e59b67088a69f2a89f0cdffa90fffb8
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
-rw-r--r-- | src/plugins/qmldesigner/components/formeditor/formeditoritem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmldesigner/components/formeditor/formeditoritem.cpp b/src/plugins/qmldesigner/components/formeditor/formeditoritem.cpp index f26e035442..9f6d3e9cd8 100644 --- a/src/plugins/qmldesigner/components/formeditor/formeditoritem.cpp +++ b/src/plugins/qmldesigner/components/formeditor/formeditoritem.cpp @@ -109,7 +109,7 @@ void FormEditorItem::updateGeometry() m_boundingRect = m_paintedBoundingRect.united(m_selectionBoundingRect); setTransform(qmlItemNode().instanceTransformWithContentTransform()); //the property for zValue is called z in QGraphicsObject - if (qmlItemNode().instanceValue("z").isValid()) + if (qmlItemNode().instanceValue("z").isValid() && !qmlItemNode().isRootModelNode()) setZValue(qmlItemNode().instanceValue("z").toDouble()); } |