Reduce warning
Don't add graphics items twice to the scene. Reparenting already sets the scene. REVIEW: 108079
This commit is contained in:
parent
8db20e64c7
commit
d391a907e1
@ -145,9 +145,6 @@ void DeclarativeWidgetPrivate::finishExecute()
|
||||
|
||||
if (object) {
|
||||
static_cast<QGraphicsItem *>(object)->setParentItem(q);
|
||||
if (q->scene()) {
|
||||
q->scene()->addItem(object);
|
||||
}
|
||||
}
|
||||
|
||||
if (widget) {
|
||||
|
Loading…
Reference in New Issue
Block a user