diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2015-07-08 12:58:43 +0200 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2015-07-12 19:14:23 +0000 |
commit | 63a88630e92d72db42616f94cd1fae1404e9fa71 (patch) | |
tree | ce04972580204461c555e8f55f6554a1695f67e7 /examples | |
parent | 008b1218476ada691eec9bb4e181b2415fc1f0f4 (diff) |
gooch-qml: Add the input aspect, needed for the camera
Change-Id: I35df4232d327b7fc816642b968c0590fa34c9544
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/qt3d/gooch-qml/gooch-qml.pro | 2 | ||||
-rw-r--r-- | examples/qt3d/gooch-qml/main.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/examples/qt3d/gooch-qml/gooch-qml.pro b/examples/qt3d/gooch-qml/gooch-qml.pro index 73c947c72..7c3e962c1 100644 --- a/examples/qt3d/gooch-qml/gooch-qml.pro +++ b/examples/qt3d/gooch-qml/gooch-qml.pro @@ -2,7 +2,7 @@ error( "Couldn't find the examples.pri file!" ) } -QT += 3dcore 3drenderer 3dquick qml quick +QT += 3dcore 3drenderer 3dquick 3dinput qml quick SOURCES += \ main.cpp diff --git a/examples/qt3d/gooch-qml/main.cpp b/examples/qt3d/gooch-qml/main.cpp index ad2a11e62..29296db79 100644 --- a/examples/qt3d/gooch-qml/main.cpp +++ b/examples/qt3d/gooch-qml/main.cpp @@ -37,6 +37,7 @@ #include <window.h> #include <Qt3DRenderer/QRenderAspect> #include <Qt3DQuick/QQmlAspectEngine> +#include <Qt3DInput/QInputAspect> #include <QGuiApplication> #include <QtQml> @@ -49,6 +50,7 @@ int main(int argc, char* argv[]) Qt3D::Quick::QQmlAspectEngine engine; engine.aspectEngine()->registerAspect(new Qt3D::QRenderAspect()); + engine.aspectEngine()->registerAspect(new Qt3D::QInputAspect()); // Expose the window as a context property so we can set the aspect ratio engine.qmlEngine()->rootContext()->setContextProperty("_window", &view); |