summaryrefslogtreecommitdiffstats
path: root/examples/animation/sub-attaq/states.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/animation/sub-attaq/states.cpp')
-rw-r--r--examples/animation/sub-attaq/states.cpp4
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();
}