aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/doc
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/doc')
-rw-r--r--src/qml/doc/snippets/qmltc/CMakeLists.txt2
-rw-r--r--src/qml/doc/src/cmake/qt_target_compile_qml_to_cpp.qdoc12
2 files changed, 7 insertions, 7 deletions
diff --git a/src/qml/doc/snippets/qmltc/CMakeLists.txt b/src/qml/doc/snippets/qmltc/CMakeLists.txt
index 4eb60fce38..69bfda7249 100644
--- a/src/qml/doc/snippets/qmltc/CMakeLists.txt
+++ b/src/qml/doc/snippets/qmltc/CMakeLists.txt
@@ -55,6 +55,6 @@ target_link_libraries(${application_name} PRIVATE Qt::QmlPrivate Qt::QuickPrivat
# Compile qml files (listed in FILES) to C++ using qmltc and add these files to
# the application binary:
qt6_target_compile_qml_to_cpp(${application_name}
- FILES ${application_qml_files}
+ QML_FILES ${application_qml_files}
)
#! [qmltc-compile-to-cpp]
diff --git a/src/qml/doc/src/cmake/qt_target_compile_qml_to_cpp.qdoc b/src/qml/doc/src/cmake/qt_target_compile_qml_to_cpp.qdoc
index 739d18d88d..2d1da9efe8 100644
--- a/src/qml/doc/src/cmake/qt_target_compile_qml_to_cpp.qdoc
+++ b/src/qml/doc/src/cmake/qt_target_compile_qml_to_cpp.qdoc
@@ -39,7 +39,7 @@
\badcode
qt_target_compile_qml_to_cpp(
target
- FILES ...
+ QML_FILES ...
[NAMESPACE namespace]
[IMPORT_PATHS ...]
)
@@ -67,10 +67,10 @@ The \c target specifies the name of the binary that the QML files belong to. In
order for the compilation to succeed, the target is expected to be a valid QML
module, defined with qt_add_qml_module() command.
-\c FILES lists the \c{.qml} files that are going to be compiled into C++. In
-most cases, all the target's QML files would be specified in the FILES. This
-way, FILES argument is equivalent to QML_FILES argument of the
-qt_add_qml_module() command.
+\c QML_FILES lists the \c{.qml} files that are going to be compiled into C++. In
+most cases, all the target's QML files would be specified in the QML_FILES. This
+way, QML_FILES argument of this command is equivalent to QML_FILES argument of
+the qt_add_qml_module() command.
\c NAMESPACE argument defines a namespace, in which the generated C++ code
resides. By default, no namespace is specified for user projects. The code
@@ -80,7 +80,7 @@ generated from Qt's own sources is put under a QT_NAMESPACE namespace.
specified entries are passed to qmltc and allow to correctly import modules that
do not reside under the location specified by QLibraryInfo::QmlImportsPath.
-While processing FILES, the following source file properties are respected:
+While processing QML_FILES, the following source file properties are respected:
\list
\li \c{QT_QMLTC_FILE_BASENAME}: use this source file property to specify a
non-default .h and .cpp file name, which might be useful to e.g. resolve