forked from qt-creator/qt-creator
QmlDesigner: do no refresh if there is no parent
Change-Id: I2299437ea97e884f4b7734129eec8246c87208ab Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
This commit is contained in:
@@ -580,6 +580,7 @@ void QuickItemNodeInstance::reparent(const ObjectNodeInstance::Pointer &oldParen
|
||||
setPropertyVariant("y", y());
|
||||
}
|
||||
|
||||
if (quickItem()->parentItem()) {
|
||||
refresh();
|
||||
if (quickItem()->window())
|
||||
DesignerSupport::updateDirtyNode(quickItem());
|
||||
@@ -589,6 +590,7 @@ void QuickItemNodeInstance::reparent(const ObjectNodeInstance::Pointer &oldParen
|
||||
|
||||
if (instanceIsValidLayoutable(newParentInstance, newParentProperty))
|
||||
newParentInstance->refreshLayoutable();
|
||||
}
|
||||
}
|
||||
|
||||
void QuickItemNodeInstance::setPropertyVariant(const PropertyName &name, const QVariant &value)
|
||||
|
Reference in New Issue
Block a user