Commit a8939034 authored by Thomas Hartmann's avatar Thomas Hartmann Committed by Marco Bubke
Browse files

QmlDesigner.dragTool: improve usablity of drag and drop

If the parent is not set yet we do not need to reparent, yet.

Change-Id: I2ad743e775ebac57dde1b3600ff6af6378fc9da2

Reviewed-by: default avatarQt Sanity Bot <>
Reviewed-by: default avatarMarco Bubke <>
parent ba9b9330
......@@ -404,7 +404,7 @@ void DragTool::move(QPointF scenePos)
FormEditorItem *containerItem = calculateContainer(scenePos - QPoint(2, 2),;
if (containerItem &&
if (containerItem && m_movingItem->parentItem() &&
containerItem != m_movingItem->parentItem()) {
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