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());
|
setPropertyVariant("y", y());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (quickItem()->parentItem()) {
|
||||||
refresh();
|
refresh();
|
||||||
if (quickItem()->window())
|
if (quickItem()->window())
|
||||||
DesignerSupport::updateDirtyNode(quickItem());
|
DesignerSupport::updateDirtyNode(quickItem());
|
||||||
@@ -590,6 +591,7 @@ void QuickItemNodeInstance::reparent(const ObjectNodeInstance::Pointer &oldParen
|
|||||||
if (instanceIsValidLayoutable(newParentInstance, newParentProperty))
|
if (instanceIsValidLayoutable(newParentInstance, newParentProperty))
|
||||||
newParentInstance->refreshLayoutable();
|
newParentInstance->refreshLayoutable();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void QuickItemNodeInstance::setPropertyVariant(const PropertyName &name, const QVariant &value)
|
void QuickItemNodeInstance::setPropertyVariant(const PropertyName &name, const QVariant &value)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user