summaryrefslogtreecommitdiffstats
path: root/examples/widgets/doc/src/menus.qdoc
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/doc/src/menus.qdoc')
-rw-r--r--examples/widgets/doc/src/menus.qdoc4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/widgets/doc/src/menus.qdoc b/examples/widgets/doc/src/menus.qdoc
index 2bffd17b6b..b78d394691 100644
--- a/examples/widgets/doc/src/menus.qdoc
+++ b/examples/widgets/doc/src/menus.qdoc
@@ -4,6 +4,7 @@
/*!
\example mainwindows/menus
\title Menus Example
+ \examplecategory {User Interface Components}
\ingroup examples-mainwindow
\ingroup examples-layout
@@ -119,7 +120,8 @@
using the provided convenience functions.
In the \c createActions() function, we first create a \c newAct
- action. We make \uicontrol Ctrl+N its shortcut using the
+ action, passing the text and and an icon using one of the theme
+ icon constants. We make \uicontrol Ctrl+N its shortcut using the
QAction::setShortcut() function, and we set its status tip using the
QAction::setStatusTip() function (the status tip is displayed on all
status bars provided by the action's top-level parent widget). We