diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2016-08-30 14:39:51 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2016-08-30 12:51:08 +0000 |
commit | 1db438735f7a3033b8a3ce6ef2b36aee1d725197 (patch) | |
tree | a127b1acd8f3009b3b7478ba9f49a9fb4ff9329e /examples | |
parent | a34e5cda67c92021d6999b3544669cdbbd9655f8 (diff) |
Replace runningSubStateMachines() with invokableServices()
SCXML allows for different kinds of services, not only other state
machines. We might add support for them in the future. From invoked
state machines you can always get the actual state machine via the
respective property. To make this easily accessible, we make the
invoked services QObjects.
Change-Id: Idd07783730bc98bded404dc2c2c3bd241180c1f4
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/scxml/invoke-common/MainView.qml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/scxml/invoke-common/MainView.qml b/examples/scxml/invoke-common/MainView.qml index d7b8ec8..b279701 100644 --- a/examples/scxml/invoke-common/MainView.qml +++ b/examples/scxml/invoke-common/MainView.qml @@ -93,12 +93,13 @@ Window { width: parent.width / 2 height: parent.height - SubStateMachines { - id: subStateMachines + InvokedServices { + id: services stateMachine: window.stateMachine } - property var anywhere: subStateMachines.children.anywhere + property var anywhere: services.children.anywhere ? services.children.anywhere.stateMachine + : undefined } } |