diff options
author | Topi Reinio <topi.reinio@qt.io> | 2018-09-09 16:06:30 +0200 |
---|---|---|
committer | Topi Reiniƶ <topi.reinio@qt.io> | 2018-09-26 10:51:45 +0000 |
commit | f6302903649315325965820c0ca9a32e87aaa49f (patch) | |
tree | 41e612a5f20a153177c645fb87d54a00c283c58c /src/core/doc | |
parent | 9a0cbcc53c16e36ac161b04fdd1fe3d843951ed9 (diff) |
Doc: Use a macro to resolve QML import versions
QDoc now supports macros for its command parameters, as well as passing
parameters to \code and \qml commands. Use these together with the
new \QtMinorVersion macro to automate bumping the QML import versions
within documentation.
Task-number: QTBUG-67818
Change-Id: Ia09a5cc06bd6e7ccd41305cecbdac90318402d00
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
Diffstat (limited to 'src/core/doc')
-rw-r--r-- | src/core/doc/src/qt3dcore-module.qdoc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/doc/src/qt3dcore-module.qdoc b/src/core/doc/src/qt3dcore-module.qdoc index 208df1c86..8f67bae41 100644 --- a/src/core/doc/src/qt3dcore-module.qdoc +++ b/src/core/doc/src/qt3dcore-module.qdoc @@ -51,7 +51,7 @@ */ /*! - \qmlmodule Qt3D.Core 2.0 + \qmlmodule Qt3D.Core 2.\QtMinorVersion \title Qt 3D Core QML Types \ingroup qmlmodules \ingroup qt3d-qmlmodules @@ -61,9 +61,9 @@ To import and use the module's QML types, use the following statement: - \badcode - import Qt3D.Core 2.0 - \endcode + \qml \QtMinorVersion + import Qt3D.Core 2.\1 + \endqml See \l {Qt 3D QML Types} for a list of all QML types in Qt 3D. |