diff options
author | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2016-03-10 11:21:38 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2016-03-30 11:56:37 +0000 |
commit | 703c6a6bee98c5d316de408867982b1684ad550b (patch) | |
tree | 8e0b8c5fa5fb452462fb3dae7cf2639e8682bcf3 /tests | |
parent | 2f2e803aa720e8a60b18eab7e4c41e67cd449457 (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 'tests')
-rw-r--r-- | tests/auto/statemachine/tst_statemachine.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/auto/statemachine/tst_statemachine.cpp b/tests/auto/statemachine/tst_statemachine.cpp index 913ec86..7a269b2 100644 --- a/tests/auto/statemachine/tst_statemachine.cpp +++ b/tests/auto/statemachine/tst_statemachine.cpp @@ -112,7 +112,6 @@ void tst_StateMachine::activeStateNames() QSignalSpy stableStateSpy(stateMachine.data(), SIGNAL(reachedStableState())); - stateMachine->init(); stateMachine->start(); stableStateSpy.wait(5000); |