diff options
author | Topi Reinio <topi.reinio@qt.io> | 2018-09-09 14:56:48 +0200 |
---|---|---|
committer | Topi Reiniƶ <topi.reinio@qt.io> | 2018-09-14 10:23:29 +0000 |
commit | 940c06a4645cca190055a3987db8147b4e2de02c (patch) | |
tree | 0fb5e97b5cf24b42cf4d7b5740975b4dc5015a12 /src/imports/models | |
parent | d7365a653fffe0a8b05f2f56715de01681e5203a (diff) |
Doc: Use a macro to resolve the QML import version
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: I8b5300749880421a0d7cdacc1b2c0f96b3b7ef67
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
Diffstat (limited to 'src/imports/models')
-rw-r--r-- | src/imports/models/plugin.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/imports/models/plugin.cpp b/src/imports/models/plugin.cpp index e0ba2c07a4..2b19345f6b 100644 --- a/src/imports/models/plugin.cpp +++ b/src/imports/models/plugin.cpp @@ -45,7 +45,7 @@ QT_BEGIN_NAMESPACE /*! - \qmlmodule QtQml.Models 2.12 + \qmlmodule QtQml.Models 2.\QtMinorVersion \title Qt QML Models QML Types \ingroup qmlmodules \brief Provides QML types for data models @@ -55,9 +55,9 @@ QT_BEGIN_NAMESPACE To use the types in this module, import the module with the following line: - \code - import QtQml.Models 2.12 - \endcode + \qml \QtMinorVersion + import QtQml.Models 2.\1 + \endqml Note that QtQml.Models module started at version 2.1 to match the version of the parent module, \l{Qt QML}. |