From b07932fb66f9402814ce41afefeb8ecc0b15fff7 Mon Sep 17 00:00:00 2001 From: Topi Reinio Date: Wed, 12 Jun 2024 13:16:48 +0000 Subject: [PATCH] Doc: Restore QActionGroup signal documentation When QAction(Group) were moved from Qt Widgets to Qt GUI, the documentation for QActionGroup's signals - triggered() and hovered() - were erraneously dropped. Restore them. Pick-to: 6.7 6.5 Fixes: QTBUG-121586 Change-Id: I7ce5ec715c0d3df7a4f9837a0822c245063eb74d Reviewed-by: Friedemann Kleint (cherry picked from commit 22761f13d342df677e653c07b3d066ed2b7354ac) Reviewed-by: Qt Cherry-pick Bot --- src/gui/kernel/qactiongroup.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/gui/kernel/qactiongroup.cpp b/src/gui/kernel/qactiongroup.cpp index 7fb5b4ad460..4694d29c938 100644 --- a/src/gui/kernel/qactiongroup.cpp +++ b/src/gui/kernel/qactiongroup.cpp @@ -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"