Commit e2d02bfb authored by Marco Bubke's avatar Marco Bubke

QmlDesigner.FormEditor: Fix root item visibility

Task-number: QTCREATORBUG-5504

Change-Id: I8ecf06c221d9e69bf25785940b390d744386f6a5
Reviewed-on: http://codereview.qt.nokia.com/1896Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@nokia.com>
parent 08f1e2e1
......@@ -199,12 +199,8 @@ void FormEditorScene::synchronizeOtherProperty(const QmlItemNode &qmlItemNode, c
if (propertyName == "z")
item->setZValue(qmlItemNode.instanceValue("z").toDouble());
if (!qmlItemNode.isRootNode()) {
if (propertyName == "visible")
item->setContentVisible(qmlItemNode.instanceValue("visible").toBool());
} else {
item->setContentVisible(true);
}
if (propertyName == "visible")
item->setContentVisible(qmlItemNode.instanceValue("visible").toBool());
}
}
......
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