summaryrefslogtreecommitdiffstats
path: root/src/corelib/statemachine/qabstracttransition.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Change to release licenses for 4.6.3.Jason McDonald2010-05-301-13/+13
| | | | Reviewed-by: Trust Me
* Update copyright year to 2010Jason McDonald2010-01-061-1/+1
| | | | Reviewed-by: Trust Me
* doc: Describe the semantics of targetless state machine transitionsKent Hansen2009-09-291-0/+4
|
* Replacing QPointer usage with QWeakPointer in statemachineLeonardo Sobral Cunha2009-09-251-3/+3
| | | | Reviewed-by: thierry
* Update license headers again.Jason McDonald2009-09-091-4/+4
| | | | Reviewed-by: Trust Me
* Update tech preview license header for files that are new in 4.6.Jason McDonald2009-08-311-13/+13
| | | | Reviewed-by: Trust Me
* Update contact URL in license headers.Jason McDonald2009-08-121-1/+1
| | | | Reviewed-by: Trust Me
* remove constructors that are not usefulKent Hansen2009-08-031-22/+0
| | | | | | | 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-11/+4
| | | | | | | | | | | | | | | | | | 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
* delete incorrect documentationKent Hansen2009-07-221-12/+0
|
* Doc: Added info on QWrappedEvent to QAbstractTransition::eventTest()Geir Vattekar2009-07-171-0/+12
| | | | Reviewed-by: Kent Hansen
* bring back QAbstractTransition::triggered() signalKent Hansen2009-06-171-0/+15
| | | | | | It's been requested by several users. Since we have QAbstractState::{entered,exited}() signals, we should have this one as well.
* Update license headers in files that are new in 4.6.Jason McDonald2009-06-171-2/+2
| | | | Reviewed-by: Trust Me
* remove q->layout() and q->parentWidget() code where unnecessaryThierry Bastian2009-06-111-4/+2
|
* add QT_NO_STATEMACHINE define so state machine can be compiled outKent Hansen2009-06-041-0/+5
| | | | Reviewed-by: Thierry Bastian
* kill unused private functionsKent Hansen2009-05-221-5/+0
|
* doc: Update signature of eventTest() in documentationEskil Abrahamsen Blomfeldt2009-05-151-1/+1
| | | | eventTest() is now non-const.
* Make QAbstractTransition::eventTest() non-constEskil Abrahamsen Blomfeldt2009-05-141-2/+2
| | | | | We decided to remove the const of the eventTest() since some transitions have dynamic conditions and need to update when eventTest() is called.
* kill the QT_STATEMACHINE_SOLUTION defineKent Hansen2009-05-131-47/+4
| | | | We won't release another Qt Solution, so the define is no longer needed.
* gracefully handle deletion of transition's target stateKent Hansen2009-05-081-2/+14
|
* get rid of warningsKent Hansen2009-05-081-2/+0
|
* Make it impossible to have root state as source or target of transition or ↵Eskil Abrahamsen Blomfeldt2009-05-071-3/+12
| | | | | | | | | | | as error state Since the root state has no ancestors, it cannot be source or target in transitions since there will be no LCA for the transition, which is required for the algorithm of enterStates and exitStates. In SCXML the root state cannot be target or source of a transition. By the same logic, it cannot be an error state. The root state will always have a valid machine, since it's added to a machine immediately, which makes this code possible.
* add event as argument to onEntry(), onExit() and onTransition()Kent Hansen2009-05-051-5/+6
| | | | | | | | | Accessing the event can be useful. E.g., onEntry() can do some common event processing regardless of which transition caused the state to be entered; onTransition() can be used in combination with eventTest(), where eventTest() would first check that the input matches some criteria, and then the actual processing of that input would be done in onTransition.
* rename a few properties and methodsKent Hansen2009-04-291-3/+3
| | | | Result of API review.
* say hello (again) to QAbstract{State,Transition}::machine()Kent Hansen2009-04-291-1/+12
| | | | It's useful and it's simple for us to expose, so let's.
* rename QTransition -> QActionTransitionKent Hansen2009-04-211-3/+0
|
* docKent Hansen2009-04-201-0/+1
|
* Initial import of statemachine branch from the old kinetic repositoryAlexis Menard2009-04-171-0/+361