diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2021-08-11 10:29:18 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-08-23 12:06:14 +0000 |
commit | 469ab6fb956e26771da0cbe2850a72983c206d74 (patch) | |
tree | 24586f1d45ccea95343351854a301bdb1fce7578 /doc | |
parent | 4356de3dc38edafd614e4627ada971ac36c38576 (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.
Task-number: QTBUG-95796
Change-Id: I2e4180fbda0b89acf3d8c036459f591eb2f46475
Reviewed-by: Craig Scott <craig.scott@qt.io>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
(cherry picked from commit c3308b13ca1d21eb6119297341588d8df1242637)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/global/macros.qdocconf | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/global/macros.qdocconf b/doc/global/macros.qdocconf index 93d5749354..0efbf05dfb 100644 --- a/doc/global/macros.qdocconf +++ b/doc/global/macros.qdocconf @@ -71,3 +71,5 @@ macro.preliminarycmakeproperty = "\\note This property is in technology preview macro.cmakecommandandroidonly = "\\note This command should only be called if targeting the Android platform." macro.cmakepropertyandroidonly = "\\note This property is used only if targeting the Android platform." macro.cmakevariableandroidonly = "\\note This variable is used only if targeting the Android platform." + +macro.versionlessCMakeCommandsNote = "If \\l{Versionless commands}{versionless commands} are disabled, use \\c{\1} instead. It supports the same set of arguments as this command." |