aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/sharedimage/plugin.cpp
diff options
context:
space:
mode:
authorMaximilian Goldstein <max.goldstein@qt.io>2021-01-21 16:11:08 +0100
committerMaximilian Goldstein <max.goldstein@qt.io>2021-01-25 11:22:04 +0100
commitcd8ae755c2762cedc98f7f389f13ab827e125e11 (patch)
tree39dd5be850fad42f66cf2c344bf8bd33feb77f86 /src/imports/sharedimage/plugin.cpp
parent9eda73354c6caf0b974febc7bdbee136d59a4e36 (diff)
Qt.labs.sharedimage: Make plugin optional
This moves the sharedimage types into a new library and is meant to make them availabe to the QML compiler at some point in the future. Task-number: QTBUG-90487 Change-Id: If79425a43cb8c1831422631791d35c1f329c7e80 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/imports/sharedimage/plugin.cpp')
-rw-r--r--src/imports/sharedimage/plugin.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/imports/sharedimage/plugin.cpp b/src/imports/sharedimage/plugin.cpp
index 3245635b2d..dab04efd92 100644
--- a/src/imports/sharedimage/plugin.cpp
+++ b/src/imports/sharedimage/plugin.cpp
@@ -37,10 +37,11 @@
**
****************************************************************************/
+#include <QtLabsSharedImage/private/qtlabssharedimageglobal_p.h>
+#include <QtLabsSharedImage/private/qsharedimageprovider_p.h>
+
#include <qqmlextensionplugin.h>
#include <qqmlengine.h>
-#include <sharedimageprovider.h>
-
/*!
\qmlmodule Qt.labs.sharedimage 1
@@ -99,8 +100,6 @@
The shared image module does not provide any directly usable QML types.
*/
-extern void qml_register_types_Qt_labs_sharedimage();
-
QT_BEGIN_NAMESPACE
class QtQuickSharedImagePlugin : public QQmlEngineExtensionPlugin