From 8dc2cda27b9d0bf5d732c3f6de253f4989e198c4 Mon Sep 17 00:00:00 2001 From: Caroline Chao Date: Tue, 7 Jan 2014 13:56:19 +0100 Subject: Add missing call to initResources needed for static linking MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Task-number: QTBUG-35674 Change-Id: If0b995fc8a28adf949189138106a2a1e7bd16147 Reviewed-by: Shawn Rutledge Reviewed-by: Tor Arne Vestbø --- src/controls/plugin.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/controls/plugin.cpp') diff --git a/src/controls/plugin.cpp b/src/controls/plugin.cpp index 2a676e48..55be136a 100644 --- a/src/controls/plugin.cpp +++ b/src/controls/plugin.cpp @@ -61,6 +61,11 @@ #include "Private/qquickstyleitem_p.h" #endif +static void initResources() +{ + Q_INIT_RESOURCE(controls); +} + QT_BEGIN_NAMESPACE static const struct { @@ -100,6 +105,7 @@ static const struct { void QtQuickControlsPlugin::registerTypes(const char *uri) { + initResources(); qmlRegisterType(uri, 1, 0, "Action"); qmlRegisterType(uri, 1, 0, "ExclusiveGroup"); qmlRegisterType(uri, 1, 0, "MenuPrivate"); -- cgit v1.2.1