summaryrefslogtreecommitdiffstats
path: root/tests/auto/qstate
Commit message (Collapse)AuthorAgeFilesLines
* remove constructors that are not usefulKent Hansen2009-08-031-2/+3
| | | | | | | The constructors that take a list of target states produce hard-to-read code, and they're rarely useful in practice since 99% of transitions take a single target state; so it's better to enforce that setTarget{State,States}() be used instead.
* Make QStateMachine inherit QStateKent Hansen2009-07-221-6/+6
| | | | | | | | | | | | | | | | | | This removes the need for a "root state" in the machine; or rather, the machine _is_ the root state. User code can now pass in a QStateMachine directly to the QState constructor, instead of machine->rootState(). This also means we could get rid of the "proxying" from the machine to the root state for things like properties (initialState et al), finished() signal and auto-reparenting of states (the ChildAdded event hack). A fun little side-effect of this change is that it's now possible to embed state machines within state machines. We can't think of a good use case yet where you would rather embed a stand-alone state machine (with its own event processing etc.) rather than having just a regular nested state, but it's neat and it works. Reviewed-by: Eskil Abrahamsen Blomfeldt
* Update license headers in files that are new in 4.6.Jason McDonald2009-06-171-1/+1
| | | | Reviewed-by: Trust Me
* Make QAbstractTransition::eventTest() non-constEskil Abrahamsen Blomfeldt2009-05-141-1/+1
| | | | | We decided to remove the const of the eventTest() since some transitions have dynamic conditions and need to update when eventTest() is called.
* Compile with new APIEskil Abrahamsen Blomfeldt2009-05-071-2/+2
| | | | addHistoryState() is gone and onTransition() now takes an argument.
* Remove API for setting specific restore policies on states. We have no clearEskil Abrahamsen Blomfeldt2009-04-231-21/+4
| | | | | | use case for this, so it has been removed. If the requirement arises we can add it back in later. Since it no longer makes sense to have it in QAbstractState, the RestorePolicy enum has been moved to QStateMachine.
* compile.Eskil Abrahamsen Blomfeldt2009-04-211-3/+3
|
* compileEskil B2009-04-211-63/+48
|
* Initial import of statemachine branch from the old kinetic repositoryAlexis Menard2009-04-172-0/+377