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

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 <tim.jenssen@digia.com>
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())
return;
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