summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/simple-qml/main.cpp
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire350@gmail.com>2015-12-05 18:05:39 +0100
committerSean Harmer <sean.harmer@kdab.com>2015-12-07 19:07:22 +0000
commita48bf6131e07efc178d4175df7eee9704ca97826 (patch)
tree5f1825813ab77bcc8860dfda947c3cc4d1b70d93 /examples/qt3d/simple-qml/main.cpp
parentdb9571c4d1625da730e6055f8c1f9ff6f4cfd414 (diff)
simple-qml: CameraController implementation using the new Input API
Change-Id: I934a2b3b96db2be8d582059651338b69c4175320 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'examples/qt3d/simple-qml/main.cpp')
-rw-r--r--examples/qt3d/simple-qml/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/qt3d/simple-qml/main.cpp b/examples/qt3d/simple-qml/main.cpp
index a7112627b..973cb173a 100644
--- a/examples/qt3d/simple-qml/main.cpp
+++ b/examples/qt3d/simple-qml/main.cpp
@@ -37,6 +37,7 @@
#include <window.h>
#include <Qt3DRender/qrenderaspect.h>
#include <Qt3DInput/QInputAspect>
+#include <Qt3DLogic/QLogicAspect>
#include <Qt3DQuick/QQmlAspectEngine>
#include <QGuiApplication>
@@ -50,6 +51,7 @@ int main(int argc, char* argv[])
engine.aspectEngine()->registerAspect(new Qt3DRender::QRenderAspect());
engine.aspectEngine()->registerAspect(new Qt3DInput::QInputAspect());
+ engine.aspectEngine()->registerAspect(new Qt3DLogic::QLogicAspect());
engine.aspectEngine()->initialize();
QVariantMap data;
data.insert(QStringLiteral("surface"), QVariant::fromValue(static_cast<QSurface *>(&view)));