summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaszlo Papp <lpapp@kde.org>2022-06-25 10:19:03 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-06-28 00:39:50 +0000
commit6e55307defc944d62903d215aec9eb216ca78947 (patch)
treee0439f26b6e3c5354f0a89f3d4f31910ba95a07f
parent810c41093f9e1df334f6e06316388d06f18d1942 (diff)
QAction: Fix the obsolete menu() doc
35ddf3498859dc184456346f2b070fe94dabaf26 added QMenu::menuInAction, but the documentation added to cover it contains a typo. The method added to replace QAction::menu() is menuInAction, not menuForAction. It was probably just an oversight. Change-Id: I2a6ec846bbe7ac8dd9e0c285bc62dd7e08820459 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit dedf11a53b664c6901dd8d9656e6d7e1fb051974) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/gui/kernel/qaction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qaction.cpp b/src/gui/kernel/qaction.cpp
index 637ec37ca5..8ee6a06ad8 100644
--- a/src/gui/kernel/qaction.cpp
+++ b/src/gui/kernel/qaction.cpp
@@ -1191,7 +1191,7 @@ QAction::MenuRole QAction::menuRole() const
/*!
\fn QMenu *QAction::menu() const
- \deprecated Use QMenu::menuForAction instead.
+ \deprecated Use QMenu::menuInAction instead.
Returns the menu contained by this action.