aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlworkerscript
diff options
context:
space:
mode:
authorMaximilian Goldstein <max.goldstein@qt.io>2022-08-03 12:20:26 +0200
committerUlf Hermann <ulf.hermann@qt.io>2022-11-28 14:11:21 +0100
commit46429839fedd79244559069bb4235a8b0e7ebf0a (patch)
tree849874ae236f954dea3a5db294d60a4e87f526d5 /src/qmlworkerscript
parente11c1eda4fbd1910f9089dae60e4d22bfe3bb595 (diff)
QtQml: Restructure the module
Create a new module QtQml.Base which contains the actual QtQml types and a new module QtQml that just imports QtQml.Base, WorkerScript and Models. This is so we don't have circular dependencies within QtQml anymore where QtQml imports QtQml.Models but Models can't depend on QtQml for type information. [ChangeLog][QtQml][Important Behavior Changes] If you import QtQml you now need to make sure that QtQml is actually in the import path. Usually this is the case, but by manipulating the import path you can hide QtQml. In previous versions of Qt you could then still import QtQml because its types are present in the QtQml library. However, it would ignore its dependencies: QtQml.Models and QtQml.WorkerScript. If you really want to import only the builtins, you can always "import QML". Fixes: QTBUG-105240 Change-Id: Icdcdcc926757a8e9e8d639301b5b6d110de59613 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qmlworkerscript')
-rw-r--r--src/qmlworkerscript/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qmlworkerscript/CMakeLists.txt b/src/qmlworkerscript/CMakeLists.txt
index 5d6151112e..2bf6f205e2 100644
--- a/src/qmlworkerscript/CMakeLists.txt
+++ b/src/qmlworkerscript/CMakeLists.txt
@@ -11,6 +11,8 @@ qt_internal_add_qml_module(QmlWorkerScript
DESIGNER_SUPPORTED
PLUGIN_TARGET workerscriptplugin
CLASS_NAME QtQmlWorkerScriptPlugin
+ DEPENDENCIES
+ QtQml.Base/auto
SOURCES
qquickworkerscript.cpp qquickworkerscript_p.h
qtqmlworkerscriptglobal.h qtqmlworkerscriptglobal_p.h