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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user