diff options
Diffstat (limited to 'examples/animation/sub-attaq/states.cpp')
-rw-r--r-- | examples/animation/sub-attaq/states.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/animation/sub-attaq/states.cpp b/examples/animation/sub-attaq/states.cpp index f476f55..b381db7 100644 --- a/examples/animation/sub-attaq/states.cpp +++ b/examples/animation/sub-attaq/states.cpp @@ -140,10 +140,10 @@ void PlayState::onEntry() QFinalState *final = new QFinalState(machine->rootState()); //We win we should reach the final state - winState->addFinishedTransition(final); + winState->addTransition(winState, SIGNAL(finished()), final); //We lost we should reach the final state - lostState->addFinishedTransition(final); + lostState->addTransition(lostState, SIGNAL(finished()), final); machine->start(); } |