summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2021-10-25 14:27:00 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2021-11-01 23:22:55 +0100
commit35ddf3498859dc184456346f2b070fe94dabaf26 (patch)
treef91cb4beca451e1a49303230973592758cf711f5 /src/corelib
parent6ab16d52d282b1a370cda3f0cf0827142250ac29 (diff)
Add QMenu::menuInAction as a static helper
QAction::menu is deprecated, as it makes QAction (a QtGui class) depend on QtWidgets. The template hack works, but shouldn't become a permanent solution and is already deprecated. To get the QMenu out of a QAction that contains it, add a static helper to QMenu instead. QAction continues to store the menu pointer so that we don't have to use a dynamic property or an associative container in QMenu. Change-Id: Ieb6a2b1900d2fc2f16dd5a4a8ab7da98604642d3 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib')
0 files changed, 0 insertions, 0 deletions