forked from qt-creator/qt-creator
QmlDesigner.NodeInstances: Fix workaround
componentComplete after reparent was null. Change-Id: Ic4705531a38f67e706bc58a27d423d4062f83304 Reviewed-on: http://codereview.qt.nokia.com/1425 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
This commit is contained in:
committed by
Thomas Hartmann
parent
3794733660
commit
668bfe69de
@@ -314,9 +314,10 @@ void QmlGraphicsItemNodeInstance::reparent(const ObjectNodeInstance::Pointer &ol
|
||||
setMovable(true);
|
||||
}
|
||||
|
||||
bool componentComplete = QDeclarativeItemPrivate::get(qmlGraphicsItem())->componentComplete;
|
||||
QDeclarativeItemPrivate::get(qmlGraphicsItem())->componentComplete = 1;
|
||||
GraphicsObjectNodeInstance::reparent(oldParentInstance, oldParentProperty, newParentInstance, newParentProperty);
|
||||
QDeclarativeItemPrivate::get(qmlGraphicsItem())->componentComplete = 0;
|
||||
QDeclarativeItemPrivate::get(qmlGraphicsItem())->componentComplete = componentComplete;
|
||||
|
||||
if (newParentInstance && newParentInstance->isPositioner()) {
|
||||
setInPositioner(true);
|
||||
|
||||
Reference in New Issue
Block a user