Details
-
Suggestion
-
Resolution: Done
-
P3: Somewhat important
-
5.11
-
None
-
85bc558660648671020b4fb0a9032ec68ba969ec
Description
Given a macro
macro.QtMinorVersion=12
, it would be nice if qdoc could resolve
\qmlmodule QtQuick 2.\QtMinorVersion
so that the documentation would indeed read
Import Statement: import QtQuick 2.12
Currently it generates
Import Statement: import QtQuick 2.\QtMinorVersion
This becomes relevant because, since Qt 5.11, the minor version of almost all QT imports are supposed to reflect the minor version of Qt. Being able to automate (or at least centralize) this would save us from routinely having to touch .qdoc files in quite a few repositories.
Attachments
Issue Links
- is duplicated by
-
QTBUG-69602 QDoc doesn't expand macros passed to commands
-
- Closed
-
- is required for
-
QTBUG-70323 Automatically bump QML import versions in documentation
-
- Closed
-
For Gerrit Dashboard: QTBUG-67818 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
235368,4 | qdoc: Allow macro expansion in qdoc command arguments | dev | qt/qttools | Status: MERGED | +2 | 0 |
238826,3 | Fix crash when expanding macros in sections | 5.12 | qt/qttools | Status: MERGED | +2 | 0 |
239217,4 | qdoc: Allow parameters for \code, \qml, \js, and \badcode commands | 5.12 | qt/qttools | Status: MERGED | +2 | 0 |
239219,2 | qdoc: Add regular expression matching to macros | 5.12 | qt/qttools | Status: MERGED | +2 | 0 |
239296,2 | Doc: Add a macro that returns the minor version | 5.12 | qt/qtbase | Status: MERGED | +2 | 0 |
239299,4 | Doc: Use a macro to resolve the QML import version | 5.12 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
239301,3 | Doc: Use a macro to resolve QML import versions | 5.12 | qt/qt3d | Status: MERGED | +2 | 0 |
240013,3 | Doc: Add a macro that expands to the Qt version (Major.Minor) | 5.12 | qt/qtbase | Status: MERGED | +2 | 0 |
240027,3 | Doc: Use a macro to resolve QML import versions | 5.12 | qt/qtconnectivity | Status: MERGED | +2 | 0 |