aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/templates/doc
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2020-03-05 16:37:44 +0100
committerKai Koehne <kai.koehne@qt.io>2020-03-20 10:03:12 +0100
commitac9d427cd22e9b0c820dafd68ab17cca930c841d (patch)
tree513141d349a1936a842391daab55c98ea7659a88 /src/imports/templates/doc
parent4df52eee2b40244ba1a3d115a43ed51cfd742105 (diff)
Doc: Make sure import is highlighted
Use \qml ... \endqml to allow qdoc highlighting the import as QML. Also parameterize the example import QtQuick.Templates import so that it always uses the last import version. Change-Id: I3fecc8b301c58a89769caf5aa3a764551ff683b3 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/imports/templates/doc')
-rw-r--r--src/imports/templates/doc/src/qtquicktemplates2-qmltypes.qdoc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/imports/templates/doc/src/qtquicktemplates2-qmltypes.qdoc b/src/imports/templates/doc/src/qtquicktemplates2-qmltypes.qdoc
index f93d6a37..fb7809e4 100644
--- a/src/imports/templates/doc/src/qtquicktemplates2-qmltypes.qdoc
+++ b/src/imports/templates/doc/src/qtquicktemplates2-qmltypes.qdoc
@@ -37,9 +37,9 @@
The QML types can be imported using the following import statement in your
\c .qml file:
- \badcode
- import QtQuick.Templates 2.12 as T
- \endcode
+ \qml \QtMinorVersion
+ import QtQuick.Templates 2.\1 as T
+ \endqml
For the sake of clarity, there is a one-to-one mapping between the types
provided by the \c QtQuick.Templates and \c QtQuick.Controls imports. For