summaryrefslogtreecommitdiff
path: root/src/controls/MenuBar.qml
diff options
context:
space:
mode:
authorVenu <venugopal.shivashankar@digia.com>2014-03-06 16:53:40 +0100
committerVenugopal Shivashankar <venugopal.shivashankar@digia.com>2014-06-27 12:30:40 +0200
commit58c5f54f0b772a424c60a8e5184eaf698e744c9a (patch)
tree78dd541ef330ca522b34684f8530037f68a71bea /src/controls/MenuBar.qml
parentc76b9478be9c6aab13bcd8e237db12dec080841e (diff)
downloadqtquickcontrols-58c5f54f0b772a424c60a8e5184eaf698e744c9a.tar.gz
Doc: Added images and missing snippets
Task-number: QTBUG-33799 Change-Id: I582518a73276d47cf63cf31411b5176a90acab6f Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'src/controls/MenuBar.qml')
-rw-r--r--src/controls/MenuBar.qml30
1 files changed, 19 insertions, 11 deletions
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