summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/gooch-qml/main.qml
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer@kdab.com>2016-01-18 10:08:41 +0000
committerSean Harmer <sean.harmer@kdab.com>2016-01-18 10:54:59 +0000
commit4b4a407512fdd4cc0a2f7caa463b7b03520b3f62 (patch)
treee66ecb95b53b8e0a9e263772147ef1201fa9ece7 /examples/qt3d/gooch-qml/main.qml
parentd401456e1b1a3d0f4c043137a3cff935c0c8aa0e (diff)
Temporarily expose window to QML context
Allows to restore most of the QML examples using this approach until a more permanent solution can be developed (I have an idea on how to do this and will try it today). Change-Id: I9b9bb86a5323140be3ed2456cdfa91b1f93187b1 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'examples/qt3d/gooch-qml/main.qml')
-rw-r--r--examples/qt3d/gooch-qml/main.qml7
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/qt3d/gooch-qml/main.qml b/examples/qt3d/gooch-qml/main.qml
index c6c2c3277..5649a03eb 100644
--- a/examples/qt3d/gooch-qml/main.qml
+++ b/examples/qt3d/gooch-qml/main.qml
@@ -44,7 +44,12 @@ Entity {
FirstPersonCameraController { camera: mainCamera }
components: [
- FrameGraph { ForwardRenderer { camera: mainCamera } }
+ FrameGraph {
+ ForwardRenderer {
+ camera: mainCamera
+ window: _q_window
+ }
+ }
]
Camera {