summaryrefslogtreecommitdiffstats
path: root/src/quick3d/imports/input
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@theqtcompany.com>2016-01-27 00:58:09 +0100
committerAndy Shaw <andy.shaw@theqtcompany.com>2016-02-09 15:44:19 +0000
commit61d527e7d3147e63e51d2e972b97b79fb8a58716 (patch)
tree945bd13596afe90e49c1deb0dfecd96a07e34f47 /src/quick3d/imports/input
parent4304918fc7de6ba3aa163d17997573392f958186 (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/input')
-rw-r--r--src/quick3d/imports/input/qt3dquick3dinputplugin.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/quick3d/imports/input/qt3dquick3dinputplugin.h b/src/quick3d/imports/input/qt3dquick3dinputplugin.h
index 3814f903f..63463b970 100644
--- a/src/quick3d/imports/input/qt3dquick3dinputplugin.h
+++ b/src/quick3d/imports/input/qt3dquick3dinputplugin.h
@@ -42,6 +42,13 @@
#include <QtQml/QQmlExtensionPlugin>
+static void initResources()
+{
+#ifdef QT_STATIC
+ Q_INIT_RESOURCE(qmake_Qt3D_Input);
+#endif
+}
+
QT_BEGIN_NAMESPACE
class Qt3DQuick3DInputPlugin : public QQmlExtensionPlugin
@@ -49,6 +56,7 @@ class Qt3DQuick3DInputPlugin : public QQmlExtensionPlugin
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface/1.0")
public:
+ Qt3DQuick3DInputPlugin(QObject *parent = 0) : QQmlExtensionPlugin(parent) { initResources(); }
void registerTypes(const char *uri) Q_DECL_OVERRIDE;
};