summaryrefslogtreecommitdiff
path: root/src/widgets/widgetsplugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/widgetsplugin.cpp')
-rw-r--r--src/widgets/widgetsplugin.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/widgets/widgetsplugin.cpp b/src/widgets/widgetsplugin.cpp
index 7703f679..cb4fe8f8 100644
--- a/src/widgets/widgetsplugin.cpp
+++ b/src/widgets/widgetsplugin.cpp
@@ -44,6 +44,13 @@
#include "qquickqcolordialog_p.h"
#include "qquickqfontdialog_p.h"
+static void initResources()
+{
+#ifdef QT_STATIC
+ Q_INIT_RESOURCE(qmake_QtQuick_PrivateWidgets);
+#endif
+}
+
QT_BEGIN_NAMESPACE
/*!
@@ -71,6 +78,7 @@ class QtQuick2PrivateWidgetsPlugin : public QQmlExtensionPlugin
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface/1.0")
public:
+ QtQuick2PrivateWidgetsPlugin(QObject *parent = 0) : QQmlExtensionPlugin(parent) { initResources(); }
virtual void registerTypes(const char *uri)
{
Q_ASSERT(QLatin1String(uri) == QLatin1String("QtQuick.PrivateWidgets"));