summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eblomfel@trolltech.com>2009-04-29 09:09:56 (GMT)
committerEskil Abrahamsen Blomfeldt <eblomfel@trolltech.com>2009-04-29 09:10:29 (GMT)
commitc3f245e4dd5ca3422c6fdcb88c9ceea6b8a4c3ed (patch)
tree712606dbb2d2c1d0e5298ad713c89edc92963c5a /tests/auto
parente06c2e150f3607daf45b2ecd14bdcca9aba6208d (diff)
downloadQt-c3f245e4dd5ca3422c6fdcb88c9ceea6b8a4c3ed.zip
Qt-c3f245e4dd5ca3422c6fdcb88c9ceea6b8a4c3ed.tar.gz
Qt-c3f245e4dd5ca3422c6fdcb88c9ceea6b8a4c3ed.tar.bz2
Compile against new QHistoryState API.
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/qstatemachine/tst_qstatemachine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qstatemachine/tst_qstatemachine.cpp b/tests/auto/qstatemachine/tst_qstatemachine.cpp
index e42adde..7e034ea 100644
--- a/tests/auto/qstatemachine/tst_qstatemachine.cpp
+++ b/tests/auto/qstatemachine/tst_qstatemachine.cpp
@@ -816,7 +816,7 @@ void tst_QStateMachine::historyStateAsInitialState()
{
QStateMachine machine;
- QHistoryState *hs = machine.rootState()->addHistoryState();
+ QHistoryState *hs = new QHistoryState(machine.rootState());
machine.setInitialState(hs);
QState *s1 = new QState(machine.rootState());
@@ -824,7 +824,7 @@ void tst_QStateMachine::historyStateAsInitialState()
QState *s2 = new QState(machine.rootState());
- QHistoryState *s2h = s2->addHistoryState();
+ QHistoryState *s2h = new QHistoryState(s2);
s2->setInitialState(s2h);
QState *s21 = new QState(s2);