diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2014-05-27 08:51:40 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-05-31 13:12:57 +0200 |
commit | c50073199cb594754c994a2c42dc1f3c94a96a9c (patch) | |
tree | 6f3fb93585171cebc3ae244282809e05ef862b23 /src/quick3d/imports/core/qt3dquick3dcoreplugin.cpp | |
parent | 1dc9f0344aa8ebf4e8fb17e1f4a27d7a087291e4 (diff) |
Register AbstractTypes to the Qml Engine
Change-Id: Id982ee6576a0f70a26b01c75e26c3adf863a286e
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/quick3d/imports/core/qt3dquick3dcoreplugin.cpp')
-rw-r--r-- | src/quick3d/imports/core/qt3dquick3dcoreplugin.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/quick3d/imports/core/qt3dquick3dcoreplugin.cpp b/src/quick3d/imports/core/qt3dquick3dcoreplugin.cpp index 20326fcc5..503106129 100644 --- a/src/quick3d/imports/core/qt3dquick3dcoreplugin.cpp +++ b/src/quick3d/imports/core/qt3dquick3dcoreplugin.cpp @@ -51,6 +51,10 @@ #include <Qt3DCore/translatetransform.h> #include <Qt3DCore/rotatetransform.h> #include <Qt3DCore/qabstracteffect.h> +#include <Qt3DCore/qabstractmaterial.h> +#include <Qt3DCore/qabstracttechnique.h> +#include <Qt3DCore/qabstractmesh.h> +#include <Qt3DCore/qabstractrenderpass.h> QT_BEGIN_NAMESPACE @@ -58,6 +62,11 @@ void Qt3DQuick3DCorePlugin::registerTypes(const char *uri) { qmlRegisterUncreatableType<Qt3D::Node>(uri, 2, 0, "Node_priv", ""); qmlRegisterInterface<Qt3D::QAbstractEffect>("QAbstractEffect"); + qmlRegisterUncreatableType<Qt3D::QAbstractMesh>(uri, 2, 0, "QAbstractMesh", ""); + qmlRegisterUncreatableType<Qt3D::QAbstractMaterial>(uri, 2, 0, "QAbstractMaterial", ""); + qmlRegisterUncreatableType<Qt3D::QAbstractTechnique>(uri, 2, 0, "QAbstractTechnique", ""); + qmlRegisterUncreatableType<Qt3D::QAbstractRenderPass>(uri, 2, 0, "QAbstractRenderPass", ""); + qmlRegisterType<Qt3D::Component>(uri, 2, 0, "Component"); qmlRegisterType<Qt3D::Camera>(uri, 2, 0, "Camera"); qmlRegisterType<Qt3D::CameraLens>(uri, 2, 0, "CameraLens"); |