Commit b6ea314a authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesigner: Don't drop anymore in a layoutable



The behavior to drop something in a layoutable is quite strange because
we don't support visual layouting at all.

Task-number: QTCREATORBUG-11543
Change-Id: I4d455d3a6f099edfeacbdb0def2e9e9c4489768c
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent acbd1e3c
......@@ -191,8 +191,11 @@ FormEditorItem* DragTool::calculateContainer(const QPointF &point, FormEditorIte
QList<QGraphicsItem *> list = scene()->items(point);
foreach (QGraphicsItem *item, list) {
FormEditorItem *formEditorItem = FormEditorItem::fromQGraphicsItem(item);
if (formEditorItem && formEditorItem != currentItem && formEditorItem->isContainer()
&& !isAncestorOf(currentItem, formEditorItem))
if (formEditorItem
&& formEditorItem != currentItem
&& formEditorItem->isContainer()
&& !formEditorItem->qmlItemNode().modelNode().metaInfo().isLayoutable()
&& !isAncestorOf(currentItem, formEditorItem))
return formEditorItem;
}
......
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