aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/doc/snippets
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2022-06-10 15:51:08 +0200
committerUlf Hermann <ulf.hermann@qt.io>2023-01-27 19:16:39 +0100
commit2d44365f69b9bc946d085c6b149e2ac319700265 (patch)
tree966cc5dcab9ef9bc3f9ab255b602bf624b692bd0 /src/qml/doc/snippets
parentd34d035022f9c7b9957cfb2abe0ba90486416ae2 (diff)
CMake: Allow omitting the version of QML modules
Also, drop all the VERSION 1.0 lines from the examples and tests. 1.0 is actually a bad default version since it's before all the Qt versions. [ChangeLog][QML] You can now omit the VERSION argument to qt_add_qml_module(). This will automatically generate the highest possible version. Pick-to: 6.5 Task-number: QTBUG-99146 Change-Id: Ic10ec69b87c224e0e94e1785f65653815d4c778c Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Diffstat (limited to 'src/qml/doc/snippets')
-rw-r--r--src/qml/doc/snippets/qmltc/CMakeLists.txt1
-rw-r--r--src/qml/doc/snippets/qmltc/myApp.qml2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/qml/doc/snippets/qmltc/CMakeLists.txt b/src/qml/doc/snippets/qmltc/CMakeLists.txt
index b6f24e8684..4be5a96528 100644
--- a/src/qml/doc/snippets/qmltc/CMakeLists.txt
+++ b/src/qml/doc/snippets/qmltc/CMakeLists.txt
@@ -45,7 +45,6 @@ target_compile_definitions(${application_name} PRIVATE
#! [qmltc-add-qml-module]
# Make the application into a proper QML module:
qt6_add_qml_module(${application_name}
- VERSION 1.0
URI QmltcExample
AUTO_RESOURCE_PREFIX
QML_FILES ${application_qml_files}
diff --git a/src/qml/doc/snippets/qmltc/myApp.qml b/src/qml/doc/snippets/qmltc/myApp.qml
index f4f9aa2f78..5fef927210 100644
--- a/src/qml/doc/snippets/qmltc/myApp.qml
+++ b/src/qml/doc/snippets/qmltc/myApp.qml
@@ -2,7 +2,7 @@
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
import QtQuick
-import QmltcExample 1.0 // application's own QML module
+import QmltcExample // application's own QML module
Rectangle {
id: window