From 95d70a895791d1e64d326613613eac686043bb17 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Tue, 29 Nov 2016 14:37:56 +0100 Subject: [PATCH] SCXML Editor: Add some fall through markers The parent/child relations between scxml tags are correct. Change-Id: I58cd4153feee8b7cf8bdb74f89486e9fbc641839 Reviewed-by: Tobias Hunger --- src/plugins/scxmleditor/plugin_interface/scxmltagutils.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins/scxmleditor/plugin_interface/scxmltagutils.cpp b/src/plugins/scxmleditor/plugin_interface/scxmltagutils.cpp index 7491a56312b..41e114e160a 100644 --- a/src/plugins/scxmleditor/plugin_interface/scxmltagutils.cpp +++ b/src/plugins/scxmleditor/plugin_interface/scxmltagutils.cpp @@ -112,6 +112,7 @@ QVector allowedChildTypes(TagType tagType) case State: childTags << Initial; childTags << Final; + // FALL THROUGH case Parallel: childTags << OnEntry; childTags << OnExit; @@ -134,6 +135,7 @@ QVector allowedChildTypes(TagType tagType) case If: childTags << ElseIf; childTags << Else; + // FALL THROUGH case Transition: case OnEntry: case OnExit: @@ -167,6 +169,7 @@ QVector allowedChildTypes(TagType tagType) break; case Invoke: childTags << Finalize; + // FALL THROUGH case Donedata: case Send: childTags << Param; @@ -208,6 +211,7 @@ QVector childTypes(TagType tagType) case If: childTags << ElseIf; childTags << Else; + // FALL THROUGH case Transition: case OnEntry: case OnExit: @@ -241,6 +245,7 @@ QVector childTypes(TagType tagType) break; case Invoke: childTags << Finalize; + // FALL THROUGH case Donedata: case Send: childTags << Param;