From 58c5f54f0b772a424c60a8e5184eaf698e744c9a Mon Sep 17 00:00:00 2001 From: Venu Date: Thu, 6 Mar 2014 16:53:40 +0100 Subject: Doc: Added images and missing snippets Task-number: QTBUG-33799 Change-Id: I582518a73276d47cf63cf31411b5176a90acab6f Reviewed-by: J-P Nurmi --- src/controls/MenuBar.qml | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) (limited to 'src/controls/MenuBar.qml') diff --git a/src/controls/MenuBar.qml b/src/controls/MenuBar.qml index 4d577930..19e405ae 100644 --- a/src/controls/MenuBar.qml +++ b/src/controls/MenuBar.qml @@ -50,19 +50,27 @@ import QtQuick.Controls.Private 1.0 \ingroup applicationwindow \brief Provides a horizontal menu bar. + \image menubar.png + + MenuBar can be added to an \l ApplicationWindow, providing menu options + to access additional functionality of the application. + \code - MenuBar { - Menu { - title: "File" - MenuItem { text: "Open..." } - MenuItem { text: "Close" } - } + ApplicationWindow { + ... + menuBar: MenuBar { + Menu { + title: "File" + MenuItem { text: "Open..." } + MenuItem { text: "Close" } + } - Menu { - title: "Edit" - MenuItem { text: "Cut" } - MenuItem { text: "Copy" } - MenuItem { text: "Paste" } + Menu { + title: "Edit" + MenuItem { text: "Cut" } + MenuItem { text: "Copy" } + MenuItem { text: "Paste" } + } } } \endcode -- cgit v1.2.1