diff options
author | Andy Shaw <andy.shaw@theqtcompany.com> | 2016-01-27 00:58:09 +0100 |
---|---|---|
committer | Andy Shaw <andy.shaw@theqtcompany.com> | 2016-02-09 15:44:19 +0000 |
commit | 61d527e7d3147e63e51d2e972b97b79fb8a58716 (patch) | |
tree | 945bd13596afe90e49c1deb0dfecd96a07e34f47 /src/quick3d/imports/scene3d | |
parent | 4304918fc7de6ba3aa163d17997573392f958186 (diff) |
Enable using the module in a statically built application
Change-Id: I2b4464aea5b8ef7852d80e829b5e82f0e5ad57a2
Reviewed-by: Mike Krus <mike.krus@kdab.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/quick3d/imports/scene3d')
-rw-r--r-- | src/quick3d/imports/scene3d/qtquickscene3dplugin.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/quick3d/imports/scene3d/qtquickscene3dplugin.h b/src/quick3d/imports/scene3d/qtquickscene3dplugin.h index 320086395..773feb296 100644 --- a/src/quick3d/imports/scene3d/qtquickscene3dplugin.h +++ b/src/quick3d/imports/scene3d/qtquickscene3dplugin.h @@ -42,6 +42,13 @@ #include <QtQml/QQmlExtensionPlugin> +static void initResources() +{ +#ifdef QT_STATIC + Q_INIT_RESOURCE(qmake_QtQuick_Scene3D); +#endif +} + QT_BEGIN_NAMESPACE class QtQuickScene3DPlugin : public QQmlExtensionPlugin @@ -49,6 +56,7 @@ class QtQuickScene3DPlugin : public QQmlExtensionPlugin Q_OBJECT Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface/1.0") public: + QtQuickScene3DPlugin(QObject *parent = 0) : QQmlExtensionPlugin(parent) { initResources(); } void registerTypes(const char *uri) Q_DECL_OVERRIDE; }; |