forked from qt-creator/qt-creator
QmlDesigner: Fix reparent function in qmlpuppet
Change-Id: I7f30f23c5f2af24f3715bae2b1f4b7be044b0da7 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
@@ -67,9 +67,9 @@ void AnchorChangesNodeInstance::resetProperty(const PropertyName &/*name*/)
|
||||
}
|
||||
|
||||
|
||||
void AnchorChangesNodeInstance::reparent(const ServerNodeInstance &/*oldParentInstance*/,
|
||||
void AnchorChangesNodeInstance::reparent(const ObjectNodeInstance::Pointer &/*oldParentInstance*/,
|
||||
const PropertyName &/*oldParentProperty*/,
|
||||
const ServerNodeInstance &/*newParentInstance*/,
|
||||
const ObjectNodeInstance::Pointer &/*newParentInstance*/,
|
||||
const PropertyName &/*newParentProperty*/)
|
||||
{
|
||||
}
|
||||
|
@@ -59,9 +59,9 @@ public:
|
||||
virtual void resetProperty(const PropertyName &name);
|
||||
|
||||
using ObjectNodeInstance::reparent; // keep the virtual reparent(...) method around
|
||||
void reparent(const ServerNodeInstance &oldParentInstance,
|
||||
void reparent(const ObjectNodeInstance::Pointer &oldParentInstance,
|
||||
const PropertyName &oldParentProperty,
|
||||
const ServerNodeInstance &newParentInstance,
|
||||
const ObjectNodeInstance::Pointer &newParentInstance,
|
||||
const PropertyName &newParentProperty);
|
||||
|
||||
protected:
|
||||
|
@@ -99,11 +99,11 @@ void QmlPropertyChangesNodeInstance::resetProperty(const PropertyName &name)
|
||||
}
|
||||
|
||||
|
||||
void QmlPropertyChangesNodeInstance::reparent(const ServerNodeInstance &oldParentInstance, const PropertyName &oldParentProperty, const ServerNodeInstance &newParentInstance, const PropertyName &newParentProperty)
|
||||
void QmlPropertyChangesNodeInstance::reparent(const ObjectNodeInstance::Pointer &oldParentInstance, const PropertyName &oldParentProperty, const ObjectNodeInstance::Pointer &newParentInstance, const PropertyName &newParentProperty)
|
||||
{
|
||||
changesObject()->detachFromState();
|
||||
|
||||
ObjectNodeInstance::reparent(oldParentInstance.internalInstance(), oldParentProperty, newParentInstance.internalInstance(), newParentProperty);
|
||||
ObjectNodeInstance::reparent(oldParentInstance, oldParentProperty, newParentInstance, newParentProperty);
|
||||
|
||||
changesObject()->attachToState();
|
||||
}
|
||||
|
@@ -61,7 +61,7 @@ public:
|
||||
virtual void resetProperty(const PropertyName &name);
|
||||
|
||||
using ObjectNodeInstance::reparent; // keep the virtual reparent(...) method around
|
||||
void reparent(const ServerNodeInstance &oldParentInstance, const PropertyName &oldParentProperty, const ServerNodeInstance &newParentInstance, const PropertyName &newParentProperty);
|
||||
void reparent(const ObjectNodeInstance::Pointer &oldParentInstance, const PropertyName &oldParentProperty, const ObjectNodeInstance::Pointer &newParentInstance, const PropertyName &newParentProperty);
|
||||
|
||||
protected:
|
||||
QmlPropertyChangesNodeInstance(QDeclarativePropertyChanges *object);
|
||||
|
Reference in New Issue
Block a user