diff options
author | Sean Harmer <sean.harmer@kdab.com> | 2015-08-30 16:39:18 +0100 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2015-10-13 07:15:11 +0000 |
commit | 0269afd106da5d4d999585b3bdb1332a2c01af12 (patch) | |
tree | 693efc7490d3b2fc65f6d0ca7186e65e7b481521 /src/quick3d | |
parent | 4888c951fca43515aa49919a5405baa16f1cff3d (diff) |
Move Input aspect to Qt3DInput namespace
Also update examples accordingly.
Change-Id: I8d19c3165899e4b7b791deb33098af4fb439f44a
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/quick3d')
-rw-r--r-- | src/quick3d/imports/input/qt3dquick3dinputplugin.cpp | 14 | ||||
-rw-r--r-- | src/quick3d/imports/scene3d/scene3ditem.cpp | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/quick3d/imports/input/qt3dquick3dinputplugin.cpp b/src/quick3d/imports/input/qt3dquick3dinputplugin.cpp index 537e27f7b..aa3b2710e 100644 --- a/src/quick3d/imports/input/qt3dquick3dinputplugin.cpp +++ b/src/quick3d/imports/input/qt3dquick3dinputplugin.cpp @@ -47,14 +47,14 @@ QT_BEGIN_NAMESPACE void Qt3DQuick3DInputPlugin::registerTypes(const char *uri) { - qmlRegisterUncreatableType<Qt3D::Q3DKeyEvent>(uri, 2, 0, "KeyEvent", QStringLiteral("Events cannot be created")); - qmlRegisterType<Qt3D::QKeyboardController>(uri, 2, 0, "KeyboardController"); - qmlRegisterType<Qt3D::QKeyboardInput>(uri, 2, 0, "KeyboardInput"); + qmlRegisterUncreatableType<Qt3DInput::Q3DKeyEvent>(uri, 2, 0, "KeyEvent", QStringLiteral("Events cannot be created")); + qmlRegisterType<Qt3DInput::QKeyboardController>(uri, 2, 0, "KeyboardController"); + qmlRegisterType<Qt3DInput::QKeyboardInput>(uri, 2, 0, "KeyboardInput"); - qmlRegisterUncreatableType<Qt3D::Q3DMouseEvent>(uri, 2, 0, "MouseEvent", QStringLiteral("Events cannot be created")); - qmlRegisterUncreatableType<Qt3D::Q3DWheelEvent>(uri, 2, 0, "WheelEvent", QStringLiteral("Events cannot be created")); - qmlRegisterType<Qt3D::QMouseInput>(uri, 2, 0, "MouseInput"); - qmlRegisterType<Qt3D::QMouseController>(uri, 2, 0, "MouseController"); + qmlRegisterUncreatableType<Qt3DInput::Q3DMouseEvent>(uri, 2, 0, "MouseEvent", QStringLiteral("Events cannot be created")); + qmlRegisterUncreatableType<Qt3DInput::Q3DWheelEvent>(uri, 2, 0, "WheelEvent", QStringLiteral("Events cannot be created")); + qmlRegisterType<Qt3DInput::QMouseInput>(uri, 2, 0, "MouseInput"); + qmlRegisterType<Qt3DInput::QMouseController>(uri, 2, 0, "MouseController"); } QT_END_NAMESPACE diff --git a/src/quick3d/imports/scene3d/scene3ditem.cpp b/src/quick3d/imports/scene3d/scene3ditem.cpp index 79aa2b4e5..72506c8aa 100644 --- a/src/quick3d/imports/scene3d/scene3ditem.cpp +++ b/src/quick3d/imports/scene3d/scene3ditem.cpp @@ -508,7 +508,7 @@ void Scene3DItem::setAspects(const QStringList &aspects) if (aspect == QStringLiteral("render")) // This one is hardwired anyway continue; if (aspect == QStringLiteral("input")) { - m_aspectEngine->registerAspect(new Qt3D::QInputAspect); + m_aspectEngine->registerAspect(new Qt3DInput::QInputAspect); continue; } |