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/quick/doc/src/guidelines | |
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/quick/doc/src/guidelines')
-rw-r--r-- | src/quick/doc/src/guidelines/qtquick-bestpractices.qdoc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/quick/doc/src/guidelines/qtquick-bestpractices.qdoc b/src/quick/doc/src/guidelines/qtquick-bestpractices.qdoc index bac6ac8a52..f5599e404a 100644 --- a/src/quick/doc/src/guidelines/qtquick-bestpractices.qdoc +++ b/src/quick/doc/src/guidelines/qtquick-bestpractices.qdoc @@ -197,9 +197,9 @@ so. To explain why, let's take a look at a simplified example. Suppose we were writing the UI for a settings page: -\qml - import QtQuick 2.12 - import QtQuick.Controls 2.12 +\qml \QtMinorVersion + import QtQuick 2.\1 + import QtQuick.Controls 2.\1 Page { Button { @@ -296,9 +296,9 @@ into QML: The QML then calls the C++ slot directly: -\qml - import QtQuick 2.12 - import QtQuick.Controls 2.12 +\qml \QtMinorVersion + import QtQuick 2.\1 + import QtQuick.Controls 2.\1 Page { Button { |