summaryrefslogtreecommitdiffstats
path: root/examples/bigscene-cpp/main.cpp
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer@kdab.com>2014-11-02 16:10:12 +0000
committerSean Harmer <sean.harmer@kdab.com>2014-11-02 19:17:49 +0100
commita56aaeed5f09bfa5d32fa7b40ec8782414998daa (patch)
treed9658dfe6d9b6ff4c1df5c0c5800d73e90ed5101 /examples/bigscene-cpp/main.cpp
parent8bd7ea0ec2f67679d046d35af5785d99b31620a3 (diff)
QAspectEngine owns the root of the scene
The scene root is now also enforced to be a QEntity as that is what we were checking for in the backend anyway as it is impossible to create a plain QNode. This is another step towards solving the shutdown crashing bug. Change-Id: I8508afa80ec9e99954ab867be1ed28bc35405e79 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'examples/bigscene-cpp/main.cpp')
-rw-r--r--examples/bigscene-cpp/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/bigscene-cpp/main.cpp b/examples/bigscene-cpp/main.cpp
index b7b6561bc..6d252c459 100644
--- a/examples/bigscene-cpp/main.cpp
+++ b/examples/bigscene-cpp/main.cpp
@@ -136,7 +136,7 @@ int main(int ac, char **av)
e->setParent(root);
}
- view.setRootObject(root);
+ view.setRootEntity(root);
view.show();
return app.exec();
}