aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/qtquickglobal_p.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2020-08-10 13:13:38 +0200
committerUlf Hermann <ulf.hermann@qt.io>2020-08-10 13:51:02 +0200
commitd1a43e4a37cb6bbe0dfcbacd4ce975b0ce0090f0 (patch)
tree567a010c0947f8668d7b3b0977c16621f846b4b5 /src/quick/qtquickglobal_p.h
parent02caa659dad5e28b95029e28a40912cabeaf6a9b (diff)
Quick: Make sure the module initialization runs in static builds
We need to keep a reference to the module initialization function somewhere in order to prevent the linker from removing it. In order to avoid further littering of the namespace, the QQuick_initializeProviders function is transformed to cover all of the initialization. Task-number: QTBUG-85693 Change-Id: Ie93e5abd1dfb5a425b87c70d8ec6327bb68880cb Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/quick/qtquickglobal_p.h')
-rw-r--r--src/quick/qtquickglobal_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/qtquickglobal_p.h b/src/quick/qtquickglobal_p.h
index 142e29ea83..e527428808 100644
--- a/src/quick/qtquickglobal_p.h
+++ b/src/quick/qtquickglobal_p.h
@@ -65,7 +65,7 @@ void Q_QUICK_PRIVATE_EXPORT qml_register_types_QtQuick();
QT_BEGIN_NAMESPACE
-void QQuick_initializeProviders();
+void Q_QUICK_PRIVATE_EXPORT QQuick_initializeModule();
Q_DECLARE_LOGGING_CATEGORY(DBG_TOUCH)
Q_DECLARE_LOGGING_CATEGORY(DBG_MOUSE)