forked from qt-creator/qt-creator
SCXML Editor: Add some fall through markers
The parent/child relations between scxml tags are correct. Change-Id: I58cd4153feee8b7cf8bdb74f89486e9fbc641839 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Tobias Hunger
parent
70ad561ec0
commit
95d70a8957
@@ -112,6 +112,7 @@ QVector<TagType> allowedChildTypes(TagType tagType)
|
||||
case State:
|
||||
childTags << Initial;
|
||||
childTags << Final;
|
||||
// FALL THROUGH
|
||||
case Parallel:
|
||||
childTags << OnEntry;
|
||||
childTags << OnExit;
|
||||
@@ -134,6 +135,7 @@ QVector<TagType> allowedChildTypes(TagType tagType)
|
||||
case If:
|
||||
childTags << ElseIf;
|
||||
childTags << Else;
|
||||
// FALL THROUGH
|
||||
case Transition:
|
||||
case OnEntry:
|
||||
case OnExit:
|
||||
@@ -167,6 +169,7 @@ QVector<TagType> allowedChildTypes(TagType tagType)
|
||||
break;
|
||||
case Invoke:
|
||||
childTags << Finalize;
|
||||
// FALL THROUGH
|
||||
case Donedata:
|
||||
case Send:
|
||||
childTags << Param;
|
||||
@@ -208,6 +211,7 @@ QVector<TagType> childTypes(TagType tagType)
|
||||
case If:
|
||||
childTags << ElseIf;
|
||||
childTags << Else;
|
||||
// FALL THROUGH
|
||||
case Transition:
|
||||
case OnEntry:
|
||||
case OnExit:
|
||||
@@ -241,6 +245,7 @@ QVector<TagType> childTypes(TagType tagType)
|
||||
break;
|
||||
case Invoke:
|
||||
childTags << Finalize;
|
||||
// FALL THROUGH
|
||||
case Donedata:
|
||||
case Send:
|
||||
childTags << Param;
|
||||
|
Reference in New Issue
Block a user