diff options
author | Venu <venugopal.shivashankar@digia.com> | 2014-03-06 16:53:40 +0100 |
---|---|---|
committer | Venugopal Shivashankar <venugopal.shivashankar@digia.com> | 2014-06-27 12:30:40 +0200 |
commit | 58c5f54f0b772a424c60a8e5184eaf698e744c9a (patch) | |
tree | 78dd541ef330ca522b34684f8530037f68a71bea /src/controls/qquickmenuitem.cpp | |
parent | c76b9478be9c6aab13bcd8e237db12dec080841e (diff) | |
download | qtquickcontrols-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/qquickmenuitem.cpp')
-rw-r--r-- | src/controls/qquickmenuitem.cpp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/controls/qquickmenuitem.cpp b/src/controls/qquickmenuitem.cpp index 0167bebd..ef048e82 100644 --- a/src/controls/qquickmenuitem.cpp +++ b/src/controls/qquickmenuitem.cpp @@ -142,6 +142,38 @@ void QQuickMenuBase::setVisualItem(QQuickItem *item) \ingroup menus \brief MenuSeparator provides a separator for items inside a menu. + \image menu.png + + \code + Menu { + text: "Edit" + + MenuItem { + text: "Cut" + shortcut: "Ctrl+X" + onTriggered: ... + } + + MenuItem { + text: "Copy" + shortcut: "Ctrl+C" + onTriggered: ... + } + + MenuItem { + text: "Paste" + shortcut: "Ctrl+V" + onTriggered: ... + } + MenuSeparator { } + MenuItem { + text: "Do Nothing" + shortcut: "Ctrl+E,Shift+Ctrl+X" + enabled: false + } + } + \endcode + \sa Menu, MenuItem */ @@ -259,6 +291,8 @@ void QQuickMenuText::updateIcon() \inqmlmodule QtQuick.Controls \brief MenuItem provides an item to add in a menu or a menu bar. + \image menu.png + \code Menu { text: "Edit" |