QMlJSCheck: Add missed types of State changes

Change-Id: I08ed689dfa92477e35961b7b0b1d407f0c974979
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
This commit is contained in:
Dmitry V. Tchoomak
2016-11-08 21:09:37 +03:00
committed by Thomas Hartmann
parent 08b780205a
commit 10954e07a5

View File

@@ -869,6 +869,8 @@ void Check::visitQmlObject(Node *ast, UiQualifiedId *typeId,
const QString typeName = getRightMostIdentifier(typeId)->name.toString();
if (!m_typeStack.isEmpty() && m_typeStack.last() == QLatin1String("State")
&& typeId->name.toString() != "AnchorChanges"
&& typeId->name.toString() != "ParentChange"
&& typeId->name.toString() != "PropertyChanges"
&& typeId->name.toString() != "StateChangeScript")
addMessage(StateCannotHaveChildItem, typeErrorLocation, typeName);