forked from qt-creator/qt-creator
QmlDesigner: Fix regression caused by semantic check
States can of course contain PropertyChanges. Change-Id: Ie78be1db58c6820a49356b1cd70102e10211030b Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -820,7 +820,8 @@ void Check::visitQmlObject(Node *ast, UiQualifiedId *typeId,
|
|||||||
|
|
||||||
const QString typeName = getRightMostIdentifier(typeId)->name.toString();
|
const QString typeName = getRightMostIdentifier(typeId)->name.toString();
|
||||||
|
|
||||||
if (!m_typeStack.isEmpty() && m_typeStack.last() == QLatin1String("State"))
|
if (!m_typeStack.isEmpty() && m_typeStack.last() == QLatin1String("State")
|
||||||
|
&& typeId->name.toString() != "PropertyChanges")
|
||||||
addMessage(StateCannotHaveChildItem, typeErrorLocation, typeName);
|
addMessage(StateCannotHaveChildItem, typeErrorLocation, typeName);
|
||||||
|
|
||||||
if (checkTypeForDesignerSupport(typeId))
|
if (checkTypeForDesignerSupport(typeId))
|
||||||
|
Reference in New Issue
Block a user