diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/declarative/qml/qmlscriptparser.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlscriptparser.cpp b/src/declarative/qml/qmlscriptparser.cpp index 22169a5..03e6165 100644 --- a/src/declarative/qml/qmlscriptparser.cpp +++ b/src/declarative/qml/qmlscriptparser.cpp @@ -397,6 +397,16 @@ Object *ProcessAST::defineObjectBinding(int line, } return 0; + } else if(!currentProperty() && objectType == QLatin1String("State")) { + _stateStack.pushProperty(QLatin1String("states"), line); + Object *obj = defineObjectBinding_helper(line, 0, objectType, initializer); + _stateStack.pop(); + return obj; + } else if (!currentProperty() && objectType == QLatin1String("Transition")) { + _stateStack.pushProperty(QLatin1String("transitions"), line); + Object *obj = defineObjectBinding_helper(line, 0, objectType, initializer); + _stateStack.pop(); + return obj; } return defineObjectBinding_helper(line, qualifiedId, objectType, initializer); |