summaryrefslogtreecommitdiffstats
path: root/tests/auto/qstate/tst_qstate.cpp
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eblomfel@trolltech.com>2009-05-07 08:05:05 (GMT)
committerEskil Abrahamsen Blomfeldt <eblomfel@trolltech.com>2009-05-07 08:05:05 (GMT)
commited900ca77ad3c3e337054346213dc38a58137818 (patch)
tree3636bcf391970f42eec2f78a5fe28b9782114392 /tests/auto/qstate/tst_qstate.cpp
parent612e0d23938b37907f3f4fdf9733732e4b7b8a7e (diff)
downloadQt-ed900ca77ad3c3e337054346213dc38a58137818.zip
Qt-ed900ca77ad3c3e337054346213dc38a58137818.tar.gz
Qt-ed900ca77ad3c3e337054346213dc38a58137818.tar.bz2
Compile with new API
addHistoryState() is gone and onTransition() now takes an argument.
Diffstat (limited to 'tests/auto/qstate/tst_qstate.cpp')
-rw-r--r--tests/auto/qstate/tst_qstate.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qstate/tst_qstate.cpp b/tests/auto/qstate/tst_qstate.cpp
index f082caf..bb7de20 100644
--- a/tests/auto/qstate/tst_qstate.cpp
+++ b/tests/auto/qstate/tst_qstate.cpp
@@ -260,7 +260,7 @@ protected:
return e->type() == m_type;
}
- void onTransition() {}
+ void onTransition(QEvent *) {}
private:
QEvent::Type m_type;
@@ -274,7 +274,7 @@ void tst_QState::historyInitialState()
QState *s1 = new QState(machine.rootState());
QState *s2 = new QState(machine.rootState());
- QHistoryState *h1 = s2->addHistoryState();
+ QHistoryState *h1 = new QHistoryState(s2);
s2->setInitialState(h1);