summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/widgets/kernel/qaction.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/widgets/kernel/qaction.cpp b/src/widgets/kernel/qaction.cpp
index 0ef4ed0634..8a359346c9 100644
--- a/src/widgets/kernel/qaction.cpp
+++ b/src/widgets/kernel/qaction.cpp
@@ -968,7 +968,10 @@ void QAction::toggle()
Only checkable actions can be checked. By default, this is false
(the action is unchecked).
- \sa checkable
+ \note The notifier signal for this property is toggled(). As toggling
+ a QAction changes its state, it will also emit a changed() signal.
+
+ \sa checkable, toggled()
*/
void QAction::setChecked(bool b)
{
@@ -1190,7 +1193,8 @@ void QAction::activate(ActionEvent event)
This signal is emitted whenever a checkable action changes its
isChecked() status. This can be the result of a user interaction,
- or because setChecked() was called.
+ or because setChecked() was called. As setChecked() changes the
+ QAction, it emits changed() in addition to toggled().
\a checked is true if the action is checked, or false if the
action is unchecked.