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:
Ulf Hermann
2016-11-29 14:37:56 +01:00
committed by Tobias Hunger
parent 70ad561ec0
commit 95d70a8957

View File

@@ -112,6 +112,7 @@ QVector<TagType> allowedChildTypes(TagType tagType)
case State: case State:
childTags << Initial; childTags << Initial;
childTags << Final; childTags << Final;
// FALL THROUGH
case Parallel: case Parallel:
childTags << OnEntry; childTags << OnEntry;
childTags << OnExit; childTags << OnExit;
@@ -134,6 +135,7 @@ QVector<TagType> allowedChildTypes(TagType tagType)
case If: case If:
childTags << ElseIf; childTags << ElseIf;
childTags << Else; childTags << Else;
// FALL THROUGH
case Transition: case Transition:
case OnEntry: case OnEntry:
case OnExit: case OnExit:
@@ -167,6 +169,7 @@ QVector<TagType> allowedChildTypes(TagType tagType)
break; break;
case Invoke: case Invoke:
childTags << Finalize; childTags << Finalize;
// FALL THROUGH
case Donedata: case Donedata:
case Send: case Send:
childTags << Param; childTags << Param;
@@ -208,6 +211,7 @@ QVector<TagType> childTypes(TagType tagType)
case If: case If:
childTags << ElseIf; childTags << ElseIf;
childTags << Else; childTags << Else;
// FALL THROUGH
case Transition: case Transition:
case OnEntry: case OnEntry:
case OnExit: case OnExit:
@@ -241,6 +245,7 @@ QVector<TagType> childTypes(TagType tagType)
break; break;
case Invoke: case Invoke:
childTags << Finalize; childTags << Finalize;
// FALL THROUGH
case Donedata: case Donedata:
case Send: case Send:
childTags << Param; childTags << Param;