forked from qt-creator/qt-creator
QmlDesigner.NodeInstances: Use setParentItem for children property
Sets a internal flag in the QGraphicsItem to use setParentItem and not setParentItemHelper for the children property list in QGraphicsObect. Reviewed-By: Thomas Hartmann
This commit is contained in:
@@ -320,6 +320,7 @@ void QmlGraphicsItemNodeInstance::doComponentComplete()
|
|||||||
if (static_cast<QDeclarativeItemPrivate*>(QGraphicsItemPrivate::get(qmlGraphicsItem()))->componentComplete)
|
if (static_cast<QDeclarativeItemPrivate*>(QGraphicsItemPrivate::get(qmlGraphicsItem()))->componentComplete)
|
||||||
return;
|
return;
|
||||||
static_cast<QDeclarativeParserStatus*>(qmlGraphicsItem())->componentComplete();
|
static_cast<QDeclarativeParserStatus*>(qmlGraphicsItem())->componentComplete();
|
||||||
|
QGraphicsItemPrivate::get(qmlGraphicsItem())->sendParentChangeNotification = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user