aboutsummaryrefslogtreecommitdiffstats
path: root/examples/qml/tutorials/extending-qml
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 /examples/qml/tutorials/extending-qml
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 'examples/qml/tutorials/extending-qml')
-rw-r--r--examples/qml/tutorials/extending-qml/chapter1-basics/CMakeLists.txt1
-rw-r--r--examples/qml/tutorials/extending-qml/chapter2-methods/CMakeLists.txt1
-rw-r--r--examples/qml/tutorials/extending-qml/chapter3-bindings/CMakeLists.txt1
-rw-r--r--examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes/CMakeLists.txt1
-rw-r--r--examples/qml/tutorials/extending-qml/chapter5-listproperties/CMakeLists.txt1
-rw-r--r--examples/qml/tutorials/extending-qml/chapter6-plugins/CMakeLists.txt1
-rw-r--r--examples/qml/tutorials/extending-qml/chapter6-plugins/Charts/CMakeLists.txt1
7 files changed, 0 insertions, 7 deletions
diff --git a/examples/qml/tutorials/extending-qml/chapter1-basics/CMakeLists.txt b/examples/qml/tutorials/extending-qml/chapter1-basics/CMakeLists.txt
index ba2851b98d..02ed972ef5 100644
--- a/examples/qml/tutorials/extending-qml/chapter1-basics/CMakeLists.txt
+++ b/examples/qml/tutorials/extending-qml/chapter1-basics/CMakeLists.txt
@@ -33,7 +33,6 @@ target_link_libraries(chapter1-basics PUBLIC
#![0]
qt_add_qml_module(chapter1-basics
URI Charts
- VERSION 1.0
QML_FILES app.qml
NO_RESOURCE_TARGET_PATH
DEPENDENCIES QtQuick
diff --git a/examples/qml/tutorials/extending-qml/chapter2-methods/CMakeLists.txt b/examples/qml/tutorials/extending-qml/chapter2-methods/CMakeLists.txt
index 9e9da907fc..f0906cf380 100644
--- a/examples/qml/tutorials/extending-qml/chapter2-methods/CMakeLists.txt
+++ b/examples/qml/tutorials/extending-qml/chapter2-methods/CMakeLists.txt
@@ -33,7 +33,6 @@ target_link_libraries(chapter2-methods PUBLIC
qt_add_qml_module(chapter2-methods
URI Charts
- VERSION 1.0
QML_FILES app.qml
NO_RESOURCE_TARGET_PATH
DEPENDENCIES QtQuick
diff --git a/examples/qml/tutorials/extending-qml/chapter3-bindings/CMakeLists.txt b/examples/qml/tutorials/extending-qml/chapter3-bindings/CMakeLists.txt
index 3803b6ac12..05c567fd30 100644
--- a/examples/qml/tutorials/extending-qml/chapter3-bindings/CMakeLists.txt
+++ b/examples/qml/tutorials/extending-qml/chapter3-bindings/CMakeLists.txt
@@ -33,7 +33,6 @@ target_link_libraries(chapter3-bindings PUBLIC
qt_add_qml_module(chapter3-bindings
URI Charts
- VERSION 1.0
QML_FILES app.qml
NO_RESOURCE_TARGET_PATH
DEPENDENCIES QtQuick
diff --git a/examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes/CMakeLists.txt b/examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes/CMakeLists.txt
index 705bd1122a..3914819640 100644
--- a/examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes/CMakeLists.txt
+++ b/examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes/CMakeLists.txt
@@ -34,7 +34,6 @@ target_link_libraries(chapter4-customPropertyTypes PUBLIC
#![1]
qt_add_qml_module(chapter4-customPropertyTypes
URI Charts
- VERSION 1.0
QML_FILES app.qml
NO_RESOURCE_TARGET_PATH
DEPENDENCIES QtQuick
diff --git a/examples/qml/tutorials/extending-qml/chapter5-listproperties/CMakeLists.txt b/examples/qml/tutorials/extending-qml/chapter5-listproperties/CMakeLists.txt
index a256b1016f..d3b70f2017 100644
--- a/examples/qml/tutorials/extending-qml/chapter5-listproperties/CMakeLists.txt
+++ b/examples/qml/tutorials/extending-qml/chapter5-listproperties/CMakeLists.txt
@@ -34,7 +34,6 @@ target_link_libraries(chapter5-listproperties PUBLIC
qt_add_qml_module(chapter5-listproperties
URI Charts
- VERSION 1.0
QML_FILES app.qml
NO_RESOURCE_TARGET_PATH
DEPENDENCIES QtQuick
diff --git a/examples/qml/tutorials/extending-qml/chapter6-plugins/CMakeLists.txt b/examples/qml/tutorials/extending-qml/chapter6-plugins/CMakeLists.txt
index 1a1ac64a0b..f1a7ef1b51 100644
--- a/examples/qml/tutorials/extending-qml/chapter6-plugins/CMakeLists.txt
+++ b/examples/qml/tutorials/extending-qml/chapter6-plugins/CMakeLists.txt
@@ -30,7 +30,6 @@ target_link_libraries(chapter6-plugins PRIVATE
qt_add_qml_module(chapter6-plugins
URI ChartsApp
- VERSION 1.0
QML_FILES app.qml
NO_RESOURCE_TARGET_PATH
)
diff --git a/examples/qml/tutorials/extending-qml/chapter6-plugins/Charts/CMakeLists.txt b/examples/qml/tutorials/extending-qml/chapter6-plugins/Charts/CMakeLists.txt
index 0b21891905..714e44d2f0 100644
--- a/examples/qml/tutorials/extending-qml/chapter6-plugins/Charts/CMakeLists.txt
+++ b/examples/qml/tutorials/extending-qml/chapter6-plugins/Charts/CMakeLists.txt
@@ -2,7 +2,6 @@
# SPDX-License-Identifier: BSD-3-Clause
qt6_add_qml_module(chartsplugin
- VERSION 1.0
URI "Charts"
PLUGIN_TARGET chartsplugin
DEPENDENCIES QtQuick