Commit 17646d3d authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.formEditor: use defaultProperty if available

parent ada66847
......@@ -311,7 +311,10 @@ void MoveManipulator::reparentTo(FormEditorItem *newParent)
foreach (FormEditorItem* item, m_itemList) {
QmlItemNode parent(newParent->qmlItemNode());
if (parent.isValid()) {
item->qmlItemNode().setParentProperty(parent.nodeAbstractProperty("data"));
if (parent.hasDefaultProperty())
item->qmlItemNode().setParentProperty(parent.nodeAbstractProperty(parent.defaultProperty()));
else
item->qmlItemNode().setParentProperty(parent.nodeAbstractProperty("data"));
}
}
......
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