Commit 9e710d23 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.DocumentManager: Do not scatter items in layouts

Items in layouts do not need to be positioned.

Change-Id: I2bf0c83be48bd9aad11aab74e56e8a27f962214a
Reviewed-by: default avatarTim Jenssen <>
parent bfdffd2a
......@@ -422,6 +422,8 @@ void DesignDocument::cutSelected()
static void scatterItem(const ModelNode &pastedNode, const ModelNode &targetNode, int offset = -2000)
if (targetNode.metaInfo().isValid() && targetNode.metaInfo().isLayoutable())
bool scatter = false;
foreach (const ModelNode &childNode, targetNode.directSubModelNodes()) {
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