summaryrefslogtreecommitdiffstats
path: root/src/widgets/doc
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2021-08-11 10:29:18 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2021-08-23 13:06:27 +0200
commitc3308b13ca1d21eb6119297341588d8df1242637 (patch)
tree0befe9588d1d9760e6331146b8f9aac3fccf513d /src/widgets/doc
parentfd9a94594fc42347e1b08f83ae62e7d42aee1e6b (diff)
Doc: Add global \versionlessCMakeCommandsNote qdoc macro
When documenting a CMake command, document the unversioned command 'qt_foo' and use '\versionlessCMakeCommandNote qt6_foo' to refer to the versioned command. This avoids duplicating the command signature. Use the new macro where applicable. Pick-to: 6.2 Task-number: QTBUG-95796 Change-Id: I2e4180fbda0b89acf3d8c036459f591eb2f46475 Reviewed-by: Craig Scott <craig.scott@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/widgets/doc')
-rw-r--r--src/widgets/doc/src/cmake-macros.qdoc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/widgets/doc/src/cmake-macros.qdoc b/src/widgets/doc/src/cmake-macros.qdoc
index 108d63a7dd..c7a914f42d 100644
--- a/src/widgets/doc/src/cmake-macros.qdoc
+++ b/src/widgets/doc/src/cmake-macros.qdoc
@@ -39,11 +39,10 @@
\badcode
qt_wrap_ui(<VAR> ui_file1 [ui_file2 ...]
[OPTIONS ...])
-
-qt6_wrap_ui(<VAR> ui_file1 [ui_file2 ...]
- [OPTIONS ...])
\endcode
+\versionlessCMakeCommandsNote qt6_wrap_ui()
+
\section1 Description
Creates rules for calling the \l{uic}{User Interface Compiler (uic)} on the given