diff options
author | Laszlo Papp <lpapp@kde.org> | 2022-06-25 10:19:03 +0100 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-06-28 00:39:35 +0000 |
commit | dedf11a53b664c6901dd8d9656e6d7e1fb051974 (patch) | |
tree | a926d9edc5174602f64ff1167403670a2fd05442 | |
parent | 159a52bf3e8226d7cddfba486f5782e781fc317f (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.
Pick-to: 6.4 6.3 6.2
Change-Id: I2a6ec846bbe7ac8dd9e0c285bc62dd7e08820459
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
-rw-r--r-- | src/gui/kernel/qaction.cpp | 2 |
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. |