forked from qt-creator/qt-creator
QmlDesigner: Fix ignored properties for reparenting
We reparented into ignored properties. Now there is a more general mechanism to prevent this. Task-number: QTCREATORBUG-11970 Change-Id: Icbd5877dc13c65963079eb3ab67e48bb92056b53 Reviewed-by: Marco Bubke <marco.bubke@digia.com>
This commit is contained in:
@@ -59,12 +59,9 @@ bool QmlTransitionNodeInstance::isTransition() const
|
||||
return true;
|
||||
}
|
||||
|
||||
void QmlTransitionNodeInstance::setPropertyVariant(const PropertyName &name, const QVariant &value)
|
||||
PropertyNameList QmlTransitionNodeInstance::ignoredProperties() const
|
||||
{
|
||||
if (name == "from" || name == "to")
|
||||
return;
|
||||
|
||||
ObjectNodeInstance::setPropertyVariant(name, value);
|
||||
return PropertyNameList() << "from" << "to";
|
||||
}
|
||||
|
||||
QQuickTransition *QmlTransitionNodeInstance::qmlTransition() const
|
||||
|
||||
Reference in New Issue
Block a user