diff options
author | Caroline Chao <caroline.chao@digia.com> | 2014-01-07 13:56:19 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-01-07 16:45:32 +0100 |
commit | 8dc2cda27b9d0bf5d732c3f6de253f4989e198c4 (patch) | |
tree | 45f69297605c1f2fcc637df00d23e0cff984797b /src/controls/plugin.cpp | |
parent | 7e8dc84430426180c7489cf2d29c36ed8b54c0c3 (diff) | |
download | qtquickcontrols-8dc2cda27b9d0bf5d732c3f6de253f4989e198c4.tar.gz |
Add missing call to initResources needed for static linking
Task-number: QTBUG-35674
Change-Id: If0b995fc8a28adf949189138106a2a1e7bd16147
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
Diffstat (limited to 'src/controls/plugin.cpp')
-rw-r--r-- | src/controls/plugin.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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<QQuickAction>(uri, 1, 0, "Action"); qmlRegisterType<QQuickExclusiveGroup>(uri, 1, 0, "ExclusiveGroup"); qmlRegisterType<QQuickMenu>(uri, 1, 0, "MenuPrivate"); |