QAction: Fix the obsolete menu() doc

35ddf34988 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>
This commit is contained in:
Laszlo Papp 2022-06-25 10:19:03 +01:00 committed by Volker Hilsheimer
parent 159a52bf3e
commit dedf11a53b

View File

@ -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.