diff options
author | Eskil Abrahamsen Blomfeldt <eblomfel@trolltech.com> | 2009-05-07 08:05:05 (GMT) |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eblomfel@trolltech.com> | 2009-05-07 08:05:05 (GMT) |
commit | ed900ca77ad3c3e337054346213dc38a58137818 (patch) | |
tree | 3636bcf391970f42eec2f78a5fe28b9782114392 | |
parent | 612e0d23938b37907f3f4fdf9733732e4b7b8a7e (diff) | |
download | Qt-ed900ca77ad3c3e337054346213dc38a58137818.zip Qt-ed900ca77ad3c3e337054346213dc38a58137818.tar.gz Qt-ed900ca77ad3c3e337054346213dc38a58137818.tar.bz2 |
Compile with new API
addHistoryState() is gone and onTransition() now takes an argument.
-rw-r--r-- | tests/auto/qstate/tst_qstate.cpp | 4 |
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); |