diff options
author | Maximilian Goldstein <max.goldstein@qt.io> | 2022-02-07 13:53:49 +0100 |
---|---|---|
committer | Maximilian Goldstein <max.goldstein@qt.io> | 2022-02-14 12:38:10 +0100 |
commit | 2ea887cca0d31e98ef72ea3de868c7ae86276a81 (patch) | |
tree | 2d7fa8dc80a120ef09df49614e5c7a03cdfcb7d6 /src/qml/Qt6QmlBuildInternals.cmake | |
parent | 0f0987c16011b3485ed99660e8c83e3d75d01fd0 (diff) |
qmldir: Allow for specifying default imports
Adds the option to specify default optional imports in qmldir for
tooling to load. Previously we would just load all entries.
This allows code that that relies on modules utilizing optional imports
(i.e. everything utilizing QtQuick.Controls) to still be supported in a
limited capacity.
This change also adds the necessary CMake API to add these entries to
qmldir files. It also disables loading optional imports by default
and only leaves them enabled for qmllint.
Change-Id: Iff6aaac9cb0ec72b7a2853b60840a4d28c84aa25
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/Qt6QmlBuildInternals.cmake')
-rw-r--r-- | src/qml/Qt6QmlBuildInternals.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/Qt6QmlBuildInternals.cmake b/src/qml/Qt6QmlBuildInternals.cmake index 87daf8688f..ad42596931 100644 --- a/src/qml/Qt6QmlBuildInternals.cmake +++ b/src/qml/Qt6QmlBuildInternals.cmake @@ -36,6 +36,7 @@ macro(qt_internal_get_internal_add_qml_module_keywords IMPORTS IMPORT_PATH OPTIONAL_IMPORTS + DEFAULT_IMPORTS DEPENDENCIES PAST_MAJOR_VERSIONS ) |