forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/8.0' into 9.0
Conflicts: src/plugins/qmldesigner/components/materialbrowser/materialbrowserview.cpp src/plugins/qmldesigner/designercore/imagecache/meshimagecachecollector.cpp Change-Id: I38f196e8f42cf11f7b613e7a723745600e35c5e9
This commit is contained in:
@@ -94,5 +94,21 @@ bool QmlStateNodeInstance::resetStateProperty(const ObjectNodeInstance::Pointer
|
||||
return QmlPrivateGate::States::resetStateProperty(object(), target->object(), propertyName, resetValue);
|
||||
}
|
||||
|
||||
void QmlStateNodeInstance::reparent(const ObjectNodeInstance::Pointer &oldParentInstance,
|
||||
const PropertyName &oldParentProperty,
|
||||
const ObjectNodeInstance::Pointer &newParentInstance,
|
||||
const PropertyName &newParentProperty)
|
||||
{
|
||||
ServerNodeInstance oldState = nodeInstanceServer()->activeStateInstance();
|
||||
|
||||
ObjectNodeInstance::reparent(oldParentInstance,
|
||||
oldParentProperty,
|
||||
newParentInstance,
|
||||
newParentProperty);
|
||||
|
||||
if (oldState.isValid())
|
||||
oldState.activateState();
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace QmlDesigner
|
||||
|
||||
Reference in New Issue
Block a user