summaryrefslogtreecommitdiffstats
path: root/doc/global
diff options
context:
space:
mode:
authorTopi Reinio <topi.reinio@qt.io>2021-11-06 17:39:20 +0100
committerTopi Reinio <topi.reinio@qt.io>2021-11-10 13:31:05 +0100
commit68942a37721bfeef5ce3009d061e0805da26d57e (patch)
treefc6412329530c3f85bf64564b01ee0f5d66b5dc1 /doc/global
parent09291eead45a49e2450e2a6ab6da53351dedd4be (diff)
Doc: Add \QtMajorVersion macro
This macro expands to the major version of Qt, complementing the already existing \QtMinorVersion macro. Pick-to: 6.2 5.15 Change-Id: I64861f8cc50d73f34369311a19b5e554645a4127 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'doc/global')
-rw-r--r--doc/global/macros.qdocconf5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/global/macros.qdocconf b/doc/global/macros.qdocconf
index d165d291b4..8b5f499d07 100644
--- a/doc/global/macros.qdocconf
+++ b/doc/global/macros.qdocconf
@@ -51,8 +51,9 @@ macro.emptyspan.HTML = "<span></span>"
# \summary {Creates a build target.}
macro.summary = "\\brief \1\n\n\1\n"
-# Expands to the minor version based on the QT_VER environment variable
-macro.QtMinorVersion = "$QT_VER"
+# Macros that expand to the major and minor versions based on the QT_VER environment variable
+{macro.QtMajorVersion,macro.QtMinorVersion} = "$QT_VER"
+macro.QtMajorVersion.match = "^(\\d+)\\."
macro.QtMinorVersion.match = "\\d+\\.(\\d+)"
# Embed YouTube content by video ID - Example: \youtube dQw4w9WgXcQ