diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2016-04-27 14:13:36 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2016-04-27 12:37:33 +0000 |
commit | a3391d01ef05139630486314bab3c160ba6ff804 (patch) | |
tree | 899590a6b3ded0dab7737780a524226b9e323c72 /src/imports/controls/doc/src/qtquickcontrols2-customize.qdoc | |
parent | 5c9ea131a07e5fe08dee859e8dd29cd870f52836 (diff) |
Doc: fix qdoc warnings in "Customizing Qt Quick Controls 2"
These snippets are not complete QML documents that the QML parser
understands, so use \code instead of \qml:
qtquickcontrols2-customize.qdoc:88: warning: Unable to parse QML snippet: "Expected token `{'" at line 1, column 7
qtquickcontrols2-customize.qdoc:296: warning: Unable to parse QML snippet: "Expected token `{'" at line 1, column 14
Change-Id: I09351a268ad4401d26a09c19f06673fd4212075f
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/imports/controls/doc/src/qtquickcontrols2-customize.qdoc')
-rw-r--r-- | src/imports/controls/doc/src/qtquickcontrols2-customize.qdoc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-customize.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-customize.qdoc index 5b877736..a3b11798 100644 --- a/src/imports/controls/doc/src/qtquickcontrols2-customize.qdoc +++ b/src/imports/controls/doc/src/qtquickcontrols2-customize.qdoc @@ -83,9 +83,9 @@ After doing that, we'll simply add the following line: - \qml + \code radius: 4 - \endqml + \endcode To avoid confusion with the controls in the module itself, we'll call the file \c MyButton.qml. To use the control in @@ -285,7 +285,7 @@ \li Make the size of the shadow depend on the elevation \endlist - \qml + \code layer.enabled: control.enabled && control.MyStyle.elevation > 0 layer.effect: DropShadow { verticalOffset: 1 @@ -293,7 +293,7 @@ samples: control.MyStyle.elevation spread: 0.5 } - \endqml + \endcode With that in place, we can try out our new elevation feature: |