Skip to content
Snippets Groups Projects
Commit 6d6904c4 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner: extend the area where an item can be droped

parent b5028447
No related branches found
No related tags found
No related merge requests found
......@@ -178,6 +178,9 @@ FormEditorItem* DragTool::calculateContainer(const QPointF &point, FormEditorIte
if (formEditorItem && formEditorItem != currentItem && formEditorItem->isContainer())
return formEditorItem;
}
if (scene()->rootFormEditorItem()->boundingRect().adjusted(-100, -100, 100, 100).contains(point))
return scene()->rootFormEditorItem();
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment