aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/doc/snippets/cmake
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2025-10-27 15:34:04 +0100
committerAlexandru Croitor <alexandru.croitor@qt.io>2025-10-31 12:29:23 +0100
commit5a1610444562ed90280ff666c4474e569d87ded8 (patch)
treecb62af509aabf81923f3478fcf489abce00fb116 /src/qml/doc/snippets/cmake
parent65e39a210ce4dc5bd61a490cd1bc6b17cbf706c4 (diff)
Remove qml-i18n example in qtdeclarative repo
The qml-i18n example and the qtdeclarative repo itself depend on the LinguistTools CMake package, which is not available while building qtdeclarative. This results in: - missing build coverage for the example - a cyclic dependency, because qtdeclarative depends on qttools (because of LinguistTools), and qttools depends on qtdeclarative (because of qdoc needs) - we try to find a module that will never be available, unless qtdeclarative is built together with qttools in a top-level build - in certain cases, if the top-level build fails early enough, the cyclic dependency causes reconfigurations to fail Remove the example, the lookup of LinguistTools, and the linguist doc references to avoid all these issues. Replace the qt_add_translations reference in the docs of the QQmlApplicationEngine class with a snippet copy. Pick-to: 6.8 6.10 Task-number: QTBUG-141465 Change-Id: Id88603a3753f53dfac9f350e981073effda15eb1 Reviewed-by: Masoud Jami <masoud.jami@qt.io>
Diffstat (limited to 'src/qml/doc/snippets/cmake')
-rw-r--r--src/qml/doc/snippets/cmake/qt_add_translations.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/qml/doc/snippets/cmake/qt_add_translations.cmake b/src/qml/doc/snippets/cmake/qt_add_translations.cmake
new file mode 100644
index 0000000000..4820a2ec6b
--- /dev/null
+++ b/src/qml/doc/snippets/cmake/qt_add_translations.cmake
@@ -0,0 +1,7 @@
+#![0]
+qt_add_translations(App
+ RESOURCE_PREFIX /qt/qml/Translated/i18n
+ TS_FILE_BASE qml
+ TS_FILE_DIR i18n
+)
+#![0]