From ed900ca77ad3c3e337054346213dc38a58137818 Mon Sep 17 00:00:00 2001 From: Eskil Abrahamsen Blomfeldt Date: Thu, 7 May 2009 10:05:05 +0200 Subject: Compile with new API addHistoryState() is gone and onTransition() now takes an argument. --- tests/auto/qstate/tst_qstate.cpp | 4 ++-- 1 file 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); -- cgit v0.12