summaryrefslogtreecommitdiffstats
path: root/tests/auto/statemachineinfo
Commit message (Collapse)AuthorAgeFilesLines
* Pre-declare some meta types in the headersUlf Hermann2017-08-171-2/+0
| | | | | | | | | It doesn't make much sense to declare the meta type for QScxmlError in all the tests. Also, types exposed through Q_PROPERTY should be declared. Change-Id: Ibb08440e1f40845ea779e1c2a3882bc1b1e0a935 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Add QScxmlStateMachineInfo::initialTransition()Kevin Funk2016-11-221-0/+15
| | | | | | | Also add tests Change-Id: Ib94bd6c82129e77378caf2c53c3c8d443c6cc334 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Add QScxmlStateMachineInfo::stateParent() + testsKevin Funk2016-11-221-0/+8
| | | | | Change-Id: I3d97e1d4019c68859c9551e4a60d39348cf7ebe1 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Distinguish invalid state/transition types from IDs and drop root stateUlf Hermann2016-11-221-3/+3
| | | | | | | | | | | | | | | Types and IDs are conceptually different and shouldn't be mixed up this way. Also, as far as I can see, there is no real need to invent a synthetic root state. Leaving that out saves us a lot of inconsistency (e.g. the root state didn't show up in allStates(), and you couldn't ask it for stateChildren()). Without the root state some transitions originate from the invalid state, but that is an equally good characterization for initial transitions as the synthetic root state. Change-Id: I3738df08d0e3702433dabd3fb837f0ddaea57465 Reviewed-by: Jan Arne Petersen <jan.petersen@kdab.com> Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
* Add QScxmlStateMachineInfo::transitionEvents()Jan Arne Petersen2016-11-221-0/+9
| | | | | | | Also add corresponding test for the new method. Change-Id: I09c4bb59df06bd33ae8a8667194d5f5d96765e2e Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* State machine interrogation interfaceErik Verbruggen2016-10-074-0/+268
This interface can be used to get all states and transitions from an SCXML state machine. It will also signal which states are entered and exited for each microstep, and which transitions are taken by the microstep. Change-Id: I4bb936add6b3fd87a322093b8aee66521bb294a4 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>