diff options
author | Topi Reinio <topi.reinio@theqtcompany.com> | 2016-03-09 09:54:50 +0100 |
---|---|---|
committer | Topi Reiniƶ <topi.reinio@theqtcompany.com> | 2016-03-10 11:49:51 +0000 |
commit | 137883f5b6f1cd13b34097e79c0aee6e9ee4946c (patch) | |
tree | 17f616607be3c1a84f4f99d669c5db88edc63e36 /src/controls/qquickmenu.cpp | |
parent | 079be6f9abcebe2758875f23fe10f500ac3687fa (diff) | |
download | qtquickcontrols-137883f5b6f1cd13b34097e79c0aee6e9ee4946c.tar.gz |
Doc: Add missing closing brace to a code snippet
And switch to use \qml instead of \code, as the snippet is valid QML.
Change-Id: I0680eb0427fd3537ab052bb20ce5d7468545ccb0
Task-number: QTBUG-51715
Reviewed-by: Nico Vertriest <nico.vertriest@theqtcompany.com>
Diffstat (limited to 'src/controls/qquickmenu.cpp')
-rw-r--r-- | src/controls/qquickmenu.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/controls/qquickmenu.cpp b/src/controls/qquickmenu.cpp index 6ae20ff1..b725bbbf 100644 --- a/src/controls/qquickmenu.cpp +++ b/src/controls/qquickmenu.cpp @@ -72,7 +72,7 @@ QT_BEGIN_NAMESPACE as children. It also supports \l Instantiator objects as long as the insertion is being done manually using \l insertItem(). - \code + \qml Menu { id: recentFilesMenu @@ -94,7 +94,8 @@ QT_BEGIN_NAMESPACE enabled: recentFilesModel.count > 0 onTriggered: recentFilesModel.clear() } - \endcode + } + \endqml Note that in this case, the \c index parameter passed to \l insertItem() is relative to the position of the \l Instantiator in the menu, as opposed to absolute position |