diff options
Diffstat (limited to 'src/gui/kernel/qactiongroup.cpp')
-rw-r--r-- | src/gui/kernel/qactiongroup.cpp | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/src/gui/kernel/qactiongroup.cpp b/src/gui/kernel/qactiongroup.cpp index 69fc87a27f..4694d29c93 100644 --- a/src/gui/kernel/qactiongroup.cpp +++ b/src/gui/kernel/qactiongroup.cpp @@ -277,7 +277,7 @@ void QActionGroup::setEnabled(bool b) { Q_D(QActionGroup); d->enabled = b; - for (auto action : qAsConst(d->actions)) { + for (auto action : std::as_const(d->actions)) { action->d_func()->setEnabled(b, true); } } @@ -311,7 +311,7 @@ void QActionGroup::setVisible(bool b) { Q_D(QActionGroup); d->visible = b; - for (auto action : qAsConst(d->actions)) { + for (auto action : std::as_const(d->actions)) { if (!action->d_func()->forceInvisible) action->d_func()->setVisible(b); } @@ -323,6 +323,30 @@ bool QActionGroup::isVisible() const return d->visible; } +/*! + \fn void QActionGroup::triggered(QAction *action) + + This signal is emitted when the given \a action in the action + group is activated by the user; for example, when the user clicks + a menu option or a toolbar button, or presses an action's shortcut + key combination. + + Connect to this signal for command actions. + + \sa QAction::activate() +*/ + +/*! + \fn void QActionGroup::hovered(QAction *action) + + This signal is emitted when the given \a action in the action + group is highlighted by the user; for example, when the user + pauses with the cursor over a menu option or a toolbar button, + or presses an action's shortcut key combination. + + \sa QAction::activate() +*/ + QT_END_NAMESPACE #include "moc_qactiongroup.cpp" |