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:
Marco Bubke
2010-10-05 13:16:55 +02:00
parent 18697127a7
commit f5d0d98a6c

View File

@@ -320,6 +320,7 @@ void QmlGraphicsItemNodeInstance::doComponentComplete()
if (static_cast<QDeclarativeItemPrivate*>(QGraphicsItemPrivate::get(qmlGraphicsItem()))->componentComplete)
return;
static_cast<QDeclarativeParserStatus*>(qmlGraphicsItem())->componentComplete();
QGraphicsItemPrivate::get(qmlGraphicsItem())->sendParentChangeNotification = 1;
}
}