diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2017-06-09 13:39:09 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2018-04-27 08:28:51 +0000 |
commit | ae842623ea1aca15bab2a245d2add779aa219375 (patch) | |
tree | 023bceafe77ca3658872349dfa584540a560223d /src/controls/plugin.cpp | |
parent | 5ab01d7dc4b5a5d180885e3bc2a82267f9fcf3ae (diff) | |
download | qtquickcontrols-ae842623ea1aca15bab2a245d2add779aa219375.tar.gz |
Remove the code to manually initialize resources in static builds
After commit be9a56e5e3ced5d0d668fa24e4c65ae928f2e25a in qtbase, this is
not needed anymore. Instead the resource system injects the plugin entry
point with a reference to all resources.
Change-Id: Ieb67edec480eba18cdad29f39b262cfb8839bf8a
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/controls/plugin.cpp')
-rw-r--r-- | src/controls/plugin.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/controls/plugin.cpp b/src/controls/plugin.cpp index 4eb6c466..8aca0c49 100644 --- a/src/controls/plugin.cpp +++ b/src/controls/plugin.cpp @@ -71,14 +71,6 @@ #include <QtCore/qlocale.h> #endif -static void initResources() -{ -#ifdef QT_STATIC - Q_INIT_RESOURCE(qmake_QtQuick_Controls); - Q_INIT_RESOURCE(qmake_controls); -#endif -} - QT_BEGIN_NAMESPACE static const struct { @@ -129,7 +121,6 @@ static const struct { QtQuickControls1Plugin::QtQuickControls1Plugin(QObject *parent) : QQmlExtensionPlugin(parent) { - initResources(); } void QtQuickControls1Plugin::registerTypes(const char *uri) |