summaryrefslogtreecommitdiffstats
path: root/examples/cylinder-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/cylinder-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/cylinder-cpp')
-rw-r--r--examples/cylinder-cpp/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/cylinder-cpp/main.cpp b/examples/cylinder-cpp/main.cpp
index c11435346..20800f389 100644
--- a/examples/cylinder-cpp/main.cpp
+++ b/examples/cylinder-cpp/main.cpp
@@ -132,8 +132,7 @@ int main(int argc, char **argv)
rootEntity->addComponent(frameGraph);
// Set root object of the scene
- view.setRootObject(rootEntity);
- // Show window
+ view.setRootEntity(rootEntity);
view.show();
return app.exec();