From 137883f5b6f1cd13b34097e79c0aee6e9ee4946c Mon Sep 17 00:00:00 2001 From: Topi Reinio Date: Wed, 9 Mar 2016 09:54:50 +0100 Subject: 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 --- src/controls/qquickmenu.cpp | 5 +++-- 1 file 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 -- cgit v1.2.1