forked from qt-creator/qt-creator
QmlDesigner: Do not set state property on QQuickStateGroup
The state is determined by the state view. Change-Id: I3b76b25c618d4f860f13d2e005d88d93a660fbc0 Reviewed-by: Henning Gründl <henning.gruendl@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -456,6 +456,10 @@ QVariant ObjectNodeInstance::convertEnumToValue(const QVariant &value, const Pro
|
||||
|
||||
void ObjectNodeInstance::setPropertyVariant(const PropertyName &name, const QVariant &value)
|
||||
{
|
||||
if (name == "state" && object() && object()->metaObject()
|
||||
&& object()->metaObject()->className() == QByteArrayLiteral("QQuickStateGroup"))
|
||||
return;
|
||||
|
||||
if (ignoredProperties().contains(name))
|
||||
return;
|
||||
|
||||
|
Reference in New Issue
Block a user