summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@theqtcompany.com>2016-03-10 11:21:38 +0100
committerUlf Hermann <ulf.hermann@theqtcompany.com>2016-03-30 11:56:37 +0000
commit703c6a6bee98c5d316de408867982b1684ad550b (patch)
tree8e0b8c5fa5fb452462fb3dae7cf2639e8682bcf3 /examples
parent2f2e803aa720e8a60b18eab7e4c41e67cd449457 (diff)
Automatically initialize state machines when starting
This removes the need to call init() before start(), making the API much more intuitive. We also expose the initial values as a Q_PROPERTY so that they can be set in a declarative way from QML. Change-Id: If3c995c956764018bcab7b6caa8485e32bba6f1a Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/scxml/mediaplayer-widgets-static/doc/src/mediaplayer-widgets-static.qdoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/scxml/mediaplayer-widgets-static/doc/src/mediaplayer-widgets-static.qdoc b/examples/scxml/mediaplayer-widgets-static/doc/src/mediaplayer-widgets-static.qdoc
index 562a7af..9d1ae39 100644
--- a/examples/scxml/mediaplayer-widgets-static/doc/src/mediaplayer-widgets-static.qdoc
+++ b/examples/scxml/mediaplayer-widgets-static/doc/src/mediaplayer-widgets-static.qdoc
@@ -53,7 +53,7 @@
\quotefromfile mediaplayer-widgets-static/mediaplayer-widgets-static.cpp
\skipto mediaplayer.h
- \printuntil machine.init
+ \printuntil MainWindow mainWindow
To be notified when a state machine sends out an event, we connect to the
corresponding signals. The media player state machine will send out events