summaryrefslogtreecommitdiffstats
path: root/src/imports/bluetooth/plugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/bluetooth/plugin.cpp')
-rw-r--r--src/imports/bluetooth/plugin.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/imports/bluetooth/plugin.cpp b/src/imports/bluetooth/plugin.cpp
index cb9d564f..79986da1 100644
--- a/src/imports/bluetooth/plugin.cpp
+++ b/src/imports/bluetooth/plugin.cpp
@@ -39,6 +39,13 @@
#include "qdeclarativebluetoothservice_p.h"
#include "qdeclarativebluetoothsocket_p.h"
+static void initResources()
+{
+#ifdef QT_STATIC
+ Q_INIT_RESOURCE(qmake_QtBluetooth);
+#endif
+}
+
QT_USE_NAMESPACE
class QBluetoothQmlPlugin : public QQmlExtensionPlugin
@@ -46,6 +53,7 @@ class QBluetoothQmlPlugin : public QQmlExtensionPlugin
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
public:
+ QBluetoothQmlPlugin(QObject *parent = 0) : QQmlExtensionPlugin(parent) { initResources(); }
void registerTypes(const char *uri)
{
// @uri QtBluetooth