Caused a leak which resulted in persistent v8 handles not being
disposed.
Change-Id: I5c10ff619531976ab61d9ce1ff8327c4a40cfd5e
Reviewed-on: http://codereview.qt-project.org/6112
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
if (model->completePending()) {
// complete
viewItem->item->setZ(1);
+ QDeclarative_setParent_noEvent(viewItem->item, q->contentItem());
viewItem->item->setParentItem(q->contentItem());
model->completeItem();
} else {
+ QDeclarative_setParent_noEvent(viewItem->item, q->contentItem());
viewItem->item->setParentItem(q->contentItem());
}
// do other set up for the new item that should not happen