From cd1351401ffdfe5e6097b4b41a632655f9fa6e03 Mon Sep 17 00:00:00 2001 From: Kent Hansen Date: Fri, 13 Jul 2012 19:30:33 +0200 Subject: statemachine: Move RestorePolicy enum to QState class This makes it possible to add API for setting the restore policy per state, or even per property assignment (QTBUG-17861). This change is fully source compatible with Qt4. Change-Id: I53628546b070f6fc84891f86e7ad7bd8ef5ba285 Reviewed-by: Eskil Abrahamsen Blomfeldt --- examples/animation/appchooser/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/animation/appchooser/main.cpp b/examples/animation/appchooser/main.cpp index 23a0bd6aee..c8e60c0641 100644 --- a/examples/animation/appchooser/main.cpp +++ b/examples/animation/appchooser/main.cpp @@ -146,7 +146,7 @@ int main(int argc, char **argv) window.setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); QStateMachine machine; - machine.setGlobalRestorePolicy(QStateMachine::RestoreProperties); + machine.setGlobalRestorePolicy(QState::RestoreProperties); QState *group = new QState(&machine); group->setObjectName("group"); -- cgit v1.2.3