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/qml/doc/src/statemachine.qdoc | |
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/qml/doc/src/statemachine.qdoc')
-rw-r--r-- | src/qml/doc/src/statemachine.qdoc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/qml/doc/src/statemachine.qdoc b/src/qml/doc/src/statemachine.qdoc index 59170a223f..6986f1baa0 100644 --- a/src/qml/doc/src/statemachine.qdoc +++ b/src/qml/doc/src/statemachine.qdoc @@ -26,7 +26,7 @@ ****************************************************************************/ /*! - \qmlmodule QtQml.StateMachine 1.11 + \qmlmodule QtQml.StateMachine 1.\QtMinorVersion \title Declarative State Machine QML Types \brief Provides QML types to create and execute state graphs. @@ -68,9 +68,9 @@ \e{QtQml.StateMachine} \e{last}. This way, the \e{State} type is provided by the Declarative State Machine Framework and not by \l{QtQuick}: - \qml - import QtQuick 2.0 - import QtQml.StateMachine 1.0 + \qml \QtMinorVersion + import QtQuick 2.\1 + import QtQml.StateMachine 1.\1 StateMachine { State { @@ -82,9 +82,9 @@ Alternatively, you can import \e{QtQml.StateMachine} into a separate namespace to avoid any ambiguity with QtQuick's \e{State} item: - \qml - import QtQuick 2.0 - import QtQml.StateMachine 1.0 as DSM + \qml \QtMinorVersion + import QtQuick 2.\1 + import QtQml.StateMachine 1.\1 as DSM DSM.StateMachine { DSM.State { |