Reduce warning

Don't add graphics items twice to the scene.
Reparenting already sets the scene.

REVIEW: 108079
This commit is contained in:
Aleix Pol 2013-01-02 18:37:41 +01:00
parent 8db20e64c7
commit d391a907e1

View File

@ -145,9 +145,6 @@ void DeclarativeWidgetPrivate::finishExecute()
if (object) {
static_cast<QGraphicsItem *>(object)->setParentItem(q);
if (q->scene()) {
q->scene()->addItem(object);
}
}
if (widget) {