From 7814e1dbfd09ead88951d95f72e71f45fd27c920 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Tue, 23 Jun 2020 17:25:52 +0200 Subject: Make the qtquick and qtqml plugins optional We can do the initialization and de-initialization as constructor and destructor functions. Then we don't need to load the plugins. Task-number: QTBUG-84639 Change-Id: I2aeeee7e8d028555e3af91e93518c2c2afd70dbb Reviewed-by: Fabian Kosmale --- src/quick/util/qquickglobal.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/quick/util') diff --git a/src/quick/util/qquickglobal.cpp b/src/quick/util/qquickglobal.cpp index 6896d3d3e4..9d97280061 100644 --- a/src/quick/util/qquickglobal.cpp +++ b/src/quick/util/qquickglobal.cpp @@ -926,11 +926,4 @@ void QQuick_initializeProviders() QQml_setGuiProvider(getGuiProvider()); } -void QQuick_deinitializeProviders() -{ - QQml_removeValueTypeProvider(getValueTypeProvider()); - QQml_setColorProvider(nullptr); // technically, another plugin may have overridden our providers - QQml_setGuiProvider(nullptr); // but we cannot handle that case in a sane way. -} - QT_END_NAMESPACE -- cgit v1.2.3