summaryrefslogtreecommitdiffstats
path: root/examples/animation/appchooser/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/animation/appchooser/main.cpp')
-rw-r--r--examples/animation/appchooser/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/animation/appchooser/main.cpp b/examples/animation/appchooser/main.cpp
index fe4be1fb8..97751b272 100644
--- a/examples/animation/appchooser/main.cpp
+++ b/examples/animation/appchooser/main.cpp
@@ -134,7 +134,7 @@ int main(int argc, char **argv)
QStateMachine machine;
machine.setGlobalRestorePolicy(QStateMachine::RestoreProperties);
- QState *group = new QState(machine.rootState());
+ QState *group = new QState(&machine);
group->setObjectName("group");
QRect selectedRect(86, 86, 128, 128);