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:
Marco Bubke
2014-04-17 17:41:18 +02:00
parent 1c7fc450cc
commit e9096120ad
11 changed files with 72 additions and 72 deletions
@@ -52,22 +52,6 @@ bool PositionerNodeInstance::isResizable() const
return true;
}
void PositionerNodeInstance::setPropertyVariant(const PropertyName &name, const QVariant &value)
{
if (name == "move" || name == "add" || name == "populate")
return;
QuickItemNodeInstance::setPropertyVariant(name, value);
}
void PositionerNodeInstance::setPropertyBinding(const PropertyName &name, const QString &expression)
{
if (name == "move" || name == "add" || name == "populate")
return;
QuickItemNodeInstance::setPropertyBinding(name, expression);
}
PositionerNodeInstance::Pointer PositionerNodeInstance::create(QObject *object)
{
QQuickBasePositioner *positioner = qobject_cast<QQuickBasePositioner*>(object);
@@ -99,5 +83,10 @@ void PositionerNodeInstance::refreshLayoutable()
Q_UNUSED(success)
}
PropertyNameList PositionerNodeInstance::ignoredProperties() const
{
return PropertyNameList() << "move" << "add" << "populate";
}
}
} // namespace QmlDesigner