summaryrefslogtreecommitdiffstats
path: root/examples/widgets/doc
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2024-01-30 14:49:09 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2024-02-01 18:42:13 +0100
commit4aa2e594ff055e46c56734a2c0838c214c6bce88 (patch)
treeeace97dfd76322534bfea75b703cd7fe332188bd /examples/widgets/doc
parent78f8dfc5427457783ceef7d85885cddbec035ebe (diff)
Menu example: Use theme icons
Pick-to: 6.7 Change-Id: I7f77457b439919e7a7882f23e21e648d8965859a Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'examples/widgets/doc')
-rw-r--r--examples/widgets/doc/src/menus.qdoc3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/widgets/doc/src/menus.qdoc b/examples/widgets/doc/src/menus.qdoc
index db03eeec90..b78d394691 100644
--- a/examples/widgets/doc/src/menus.qdoc
+++ b/examples/widgets/doc/src/menus.qdoc
@@ -120,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