diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-04-27 16:07:03 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-04-27 16:07:03 (GMT) |
commit | a460bee2b3051bf6a5176b5c620f81ff962a7f53 (patch) | |
tree | cd16498e44c7ab61b527e4c192969d8101ccb5ad /tests/auto | |
parent | 53e8c64d0ed050bc195bb4851da2f6d65b5c8ca5 (diff) | |
download | Qt-a460bee2b3051bf6a5176b5c620f81ff962a7f53.zip Qt-a460bee2b3051bf6a5176b5c620f81ff962a7f53.tar.gz Qt-a460bee2b3051bf6a5176b5c620f81ff962a7f53.tar.bz2 |
replace QStateFinished{Event,Transition} by QState::finished() signal
Not worth it having two public classes when the same can be achieved
by having a signal.
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qstatemachine/tst_qstatemachine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qstatemachine/tst_qstatemachine.cpp b/tests/auto/qstatemachine/tst_qstatemachine.cpp index 2fa9b1a..54446a6 100644 --- a/tests/auto/qstatemachine/tst_qstatemachine.cpp +++ b/tests/auto/qstatemachine/tst_qstatemachine.cpp @@ -1231,7 +1231,7 @@ void tst_QStateMachine::stateFinished() s1_1->addTransition(s1_2); s1->setInitialState(s1_1); QFinalState *s2 = new QFinalState(machine.rootState()); - s1->addTransition(new QStateFinishedTransition(s1, QList<QAbstractState*>() << s2)); + s1->addTransition(s1, SIGNAL(finished()), s2); machine.setInitialState(s1); QSignalSpy finishedSpy(&machine, SIGNAL(finished())); machine.start(); @@ -1260,7 +1260,7 @@ void tst_QStateMachine::parallelStates() QFinalState *s2 = new QFinalState(); machine.addState(s2); - s1->addFinishedTransition(s2); + s1->addTransition(s1, SIGNAL(finished()), s2); machine.setInitialState(s1); QSignalSpy finishedSpy(&machine, SIGNAL(finished())); |