statemachine: Support parallel root state
authorKent Hansen <kent.hansen@nokia.com>
Sat, 7 Jul 2012 04:07:11 +0000 (06:07 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 11 Jul 2012 06:42:45 +0000 (08:42 +0200)
commitd281aa6936ad01e28dacabb41bd9eb59891f85a1
treefa1458eae4ce2b20afba4b98bc3423e9a1b881f5
parent28e9a602cb35fc621dec36e28e8556ca0052551e
statemachine: Support parallel root state

QStateMachine inherits from QState, so it should be possible to set
its childMode to ParallelStates, and it should behave as expected
(the machine should emit the finished() signal when all its child
states are in final states).

Task-number: QTBUG-22931
Change-Id: Ic436351be0be69e3b01ae9984561132cd9839fa7
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
src/corelib/statemachine/qstatemachine.cpp
tests/auto/corelib/statemachine/qstatemachine/tst_qstatemachine.cpp