diff options
Diffstat (limited to 'src/widgets/kernel/qactiongroup.cpp')
-rw-r--r-- | src/widgets/kernel/qactiongroup.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/widgets/kernel/qactiongroup.cpp b/src/widgets/kernel/qactiongroup.cpp index 46ca378bbe..2cf8932859 100644 --- a/src/widgets/kernel/qactiongroup.cpp +++ b/src/widgets/kernel/qactiongroup.cpp @@ -109,15 +109,15 @@ void QActionGroupPrivate::_q_actionHovered() \inmodule QtWidgets In some situations it is useful to group QAction objects together. - For example, if you have a \gui{Left Align} action, a \gui{Right - Align} action, a \gui{Justify} action, and a \gui{Center} action, + For example, if you have a \uicontrol{Left Align} action, a \uicontrol{Right + Align} action, a \uicontrol{Justify} action, and a \uicontrol{Center} action, only one of these actions should be active at any one time. One simple way of achieving this is to group the actions together in an action group. Here's a example (from the \l{mainwindows/menus}{Menus} example): - \snippet examples/mainwindows/menus/mainwindow.cpp 6 + \snippet mainwindows/menus/mainwindow.cpp 6 Here we create a new action group. Since the action group is exclusive by default, only one of the actions in the group is |