Commit 3a551b7b authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner.QmlItemNode: Items in layouts are not movable

Change-Id: Ib7d25e4dd9f912b1829d58e51ee46e966f5cd186
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 3e83e437
......@@ -369,6 +369,13 @@ bool itemIsMovable(const ModelNode &modelNode)
if (modelNode.metaInfo().isSubclassOf("QtQuick.Controls.Tab", -1, -1))
return false;
if (modelNode.hasParentProperty()) {
ModelNode parentModelNode = modelNode.parentProperty().parentModelNode();
if (QmlItemNode::isValidQmlItemNode(parentModelNode)
&& parentModelNode.metaInfo().isLayoutable())
return false;
}
return true;
}
......
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