forked from qt-creator/qt-creator
QmlDesigner: Remove initial reparenting of all items to root item
This initial reparenting to root doesn't seem to have a purpose as any valid instance will be reparented to its actual parent later anyway. Since it does break composed effects parent handling, it was removed. Fixes: QDS-12022 Change-Id: I08993424b5c3ece739809375c11d0a2cd0e3498c Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -150,8 +150,6 @@ void QuickItemNodeInstance::initialize(const ObjectNodeInstance::Pointer &object
|
|||||||
|
|
||||||
if (instanceId() == 0)
|
if (instanceId() == 0)
|
||||||
nodeInstanceServer()->setRootItem(quickItem());
|
nodeInstanceServer()->setRootItem(quickItem());
|
||||||
else
|
|
||||||
quickItem()->setParentItem(nodeInstanceServer()->rootItem());
|
|
||||||
|
|
||||||
ObjectNodeInstance::initialize(objectNodeInstance, flags);
|
ObjectNodeInstance::initialize(objectNodeInstance, flags);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user