summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2016-08-30 14:39:51 +0200
committerUlf Hermann <ulf.hermann@qt.io>2016-08-30 12:51:08 +0000
commit1db438735f7a3033b8a3ce6ef2b36aee1d725197 (patch)
treea127b1acd8f3009b3b7478ba9f49a9fb4ff9329e /examples
parenta34e5cda67c92021d6999b3544669cdbbd9655f8 (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.qml7
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
}
}