statemachine: Small refactoring of transition registration
authorKent Hansen <kent.hansen@nokia.com>
Thu, 12 Jul 2012 18:00:15 +0000 (20:00 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 13 Jul 2012 10:09:42 +0000 (12:09 +0200)
commit058246c53767dc99ff466882cd890db8ebd7bd49
treea576b498e4bc9da4ce67c230e195fa617df50e82
parent08345c5dac13ecee3c239a79eae4565050493710
statemachine: Small refactoring of transition registration

Split the guts of registerTransitions() into a registerTransition()
function. This allows a particular transition to be registered,
instead of walking the source state's whole list of transitions
every time.

Move the logic for determining whether a transition should be
registered to the state machine, since that's also where the actual
registration takes place.

Change-Id: I0496dee9454cd77b62cf2768942a82a96b320744
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
src/corelib/statemachine/qeventtransition.cpp
src/corelib/statemachine/qsignaltransition.cpp
src/corelib/statemachine/qstate.cpp
src/corelib/statemachine/qstatemachine.cpp
src/corelib/statemachine/qstatemachine_p.h