diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-06-17 08:59:50 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-06-17 09:01:59 (GMT) |
commit | 368c3c936fc12ef5249d72ffa5541df3b8558e4d (patch) | |
tree | de8d711c52a67837448b61a3f1b990b841adf0fe /tests/auto/qstatemachine | |
parent | 4cacc45d10e59bb8915b8d76c359df7a8ad0a846 (diff) | |
download | Qt-368c3c936fc12ef5249d72ffa5541df3b8558e4d.zip Qt-368c3c936fc12ef5249d72ffa5541df3b8558e4d.tar.gz Qt-368c3c936fc12ef5249d72ffa5541df3b8558e4d.tar.bz2 |
bring back QAbstractTransition::triggered() signal
It's been requested by several users. Since we have
QAbstractState::{entered,exited}() signals, we should have this one
as well.
Diffstat (limited to 'tests/auto/qstatemachine')
-rw-r--r-- | tests/auto/qstatemachine/tst_qstatemachine.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qstatemachine/tst_qstatemachine.cpp b/tests/auto/qstatemachine/tst_qstatemachine.cpp index 6404e15..9bccb97 100644 --- a/tests/auto/qstatemachine/tst_qstatemachine.cpp +++ b/tests/auto/qstatemachine/tst_qstatemachine.cpp @@ -1157,6 +1157,7 @@ void tst_QStateMachine::stateEntryAndExit() QVERIFY(!machine.isRunning()); QSignalSpy s1EnteredSpy(s1, SIGNAL(entered())); QSignalSpy s1ExitedSpy(s1, SIGNAL(exited())); + QSignalSpy tTriggeredSpy(t, SIGNAL(triggered())); QSignalSpy s2EnteredSpy(s2, SIGNAL(entered())); QSignalSpy s2ExitedSpy(s2, SIGNAL(exited())); machine.start(); @@ -1187,6 +1188,7 @@ void tst_QStateMachine::stateEntryAndExit() QCOMPARE(s1EnteredSpy.count(), 1); QCOMPARE(s1ExitedSpy.count(), 1); + QCOMPARE(tTriggeredSpy.count(), 1); QCOMPARE(s2EnteredSpy.count(), 1); QCOMPARE(s2ExitedSpy.count(), 1); } |