diff options
author | Topi Reinio <topi.reinio@qt.io> | 2018-09-09 12:39:53 +0200 |
---|---|---|
committer | Topi Reiniƶ <topi.reinio@qt.io> | 2018-09-25 16:38:44 +0000 |
commit | edeeba639ef1ae364866994a9413cca6eff3651d (patch) | |
tree | 2f494729e0a912912e2ae3bd3f81ad4335f830e1 /doc | |
parent | 35020c239495dfea1f43a419f771f76e4eceac90 (diff) |
Doc: Add a macro that returns the minor version
Add a global QDoc macro \QtMinorVersion that
expands into the minor version of Qt, or more
specifically, the minor version contained in
the QT_VER environment variable.
The main use case for the new macro is to
document the QML modules whose minor versions
track the minor version of Qt:
\qmlmodule QtQuick 2.\QtMinorVersion
Task-number: QTBUG-67818
Change-Id: I2b4fcbb18de0f8f95718099309090017c237622f
Reviewed-by: Martin Smith <martin.smith@qt.io>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/global/macros.qdocconf | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/global/macros.qdocconf b/doc/global/macros.qdocconf index dbf8c5cc6a..49ad3fff9b 100644 --- a/doc/global/macros.qdocconf +++ b/doc/global/macros.qdocconf @@ -40,6 +40,10 @@ macro.endfloat.HTML = "</div>" macro.clearfloat.HTML = "<br style=\"clear: both\" />" macro.emptyspan.HTML = "<span></span>" +# Expands to the minor version based on the QT_VER environment variable +macro.QtMinorVersion = "$QT_VER" +macro.QtMinorVersion.match = "\\d+\\.(\\d+)" + # Embed YouTube content by video ID - Example: \youtube dQw4w9WgXcQ # Also requires a <ID>.jpg thumbnail for offline docs. In .qdocconf, add: # |