From dedf11a53b664c6901dd8d9656e6d7e1fb051974 Mon Sep 17 00:00:00 2001 From: Laszlo Papp Date: Sat, 25 Jun 2022 10:19:03 +0100 Subject: [PATCH] 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 --- src/gui/kernel/qaction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/kernel/qaction.cpp b/src/gui/kernel/qaction.cpp index 637ec37ca5d..8ee6a06ad81 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.