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>
This commit is contained in:
Topi Reinio
2021-11-10 13:31:05 +01:00
parent 09291eead4
commit 68942a3772
+3 -2
View File
@@ -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