diff options
author | Jens Bache-Wiig <jens.bache-wiig@digia.com> | 2013-05-15 16:30:05 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-05-16 07:57:45 +0200 |
commit | bb7ba4d62d3084c5448b9012e4a618c02395b087 (patch) | |
tree | 38f81e2b2cb8234e403dc1487f12bcf51ff75fb1 /src/controls/qquickaction.cpp | |
parent | caaeec4755f07c0b12afce7340324d049a3d1d3d (diff) | |
download | qtquickcontrols-bb7ba4d62d3084c5448b9012e4a618c02395b087.tar.gz |
Improve top-level index page for documentation
- Adds Menus to the front page so that we
can actually find essential types like Menu and Action.
- Added a basic example for Action
- I also added ExclusiveGroup to the Controls
category to make it accessible.
Change-Id: Ife980b786870d2bf07d709e024cb97396870e6c7
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Diffstat (limited to 'src/controls/qquickaction.cpp')
-rw-r--r-- | src/controls/qquickaction.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/controls/qquickaction.cpp b/src/controls/qquickaction.cpp index dc1f7bb9..a597515f 100644 --- a/src/controls/qquickaction.cpp +++ b/src/controls/qquickaction.cpp @@ -53,6 +53,7 @@ QT_BEGIN_NAMESPACE /*! \qmltype Action \instantiates QQuickAction + \ingroup applicationwindow \inqmlmodule QtQuick.Controls 1.0 \brief Action provides an abstract user interface action that can be bound to items @@ -65,6 +66,19 @@ QT_BEGIN_NAMESPACE automatically be checked. QtQuick Controls supports actions in \l Button, \l ToolButton, and \l MenuItem. + + Example: + \qml + Action { + id: openAction + text: "&Open" + shortcut: "Ctrl+O" + iconSource: "images/document-open.png" + onTriggered: fileDialog.open() + tooltip: "Open an Image" + } + \endqml + */ /*! |