From 68942a37721bfeef5ce3009d061e0805da26d57e Mon Sep 17 00:00:00 2001 From: Topi Reinio Date: Sat, 6 Nov 2021 17:39:20 +0100 Subject: [PATCH] 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 --- doc/global/macros.qdocconf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/global/macros.qdocconf b/doc/global/macros.qdocconf index d165d291b4f..8b5f499d07e 100644 --- a/doc/global/macros.qdocconf +++ b/doc/global/macros.qdocconf @@ -51,8 +51,9 @@ macro.emptyspan.HTML = "" # \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