qt6-bb10/src/gui/kernel
Volker Hilsheimer 6829719575 macOS: allow Qt::AA_DontShowShortcutsInContextMenus overrides
Following the discussion in QTBUG-69452, the resulting change in
cc33dd0797, and the documentation of
QAction::shortcutVisibleInContextMenu, the intention is that the
attribute allows the overriding of the platform default.

However, QAction did ask both the attribute and the platform
integration, making the override impossible. Instead, ask only
the attribute, but default the value of the attribute to what the
platform integration provides.

[ChangeLog][QtGui][QAction] The shortcutVisibleInContextMenu property
defaults to the value of the Qt::AA_DontShowShortcutsInContextMenus
attribute, which in turn defaults to the platform integration. To
override the default, set the application attribute after
instantiating QApplication, or override the default for each
QAction instance.

Task-number: QTBUG-73990
Pick-to: 5.15 6.1
Change-Id: Iaba330913555d93d05efe1b3965a6aea39db5554
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2021-06-07 17:14:14 +02:00
..
qaction.cpp macOS: allow Qt::AA_DontShowShortcutsInContextMenus overrides 2021-06-07 17:14:14 +02:00
qaction.h Cleanup QAction::visible property 2020-09-10 09:24:18 +00:00
qaction_p.h Simplify QAction privates 2020-10-06 09:41:31 +02:00
qactiongroup.cpp Cleanup QAction::visible property 2020-09-10 09:24:18 +00:00
qactiongroup.h Add forwarding headers for classes moved from QtWidgets to QtGui 2020-10-20 19:27:04 +02:00
qactiongroup_p.h Remove QGuiAction again and split QAction implementation up instead 2020-03-29 11:18:57 +01:00
qclipboard.cpp Convert a couple of APIs to use views 2020-10-06 11:16:36 +02:00
qclipboard.h
qcursor.cpp Doc: Use \deprecated instead of \obsolete 2021-05-26 13:06:56 +02:00
qcursor.h Centralize the implementation of move assignment operators 2020-10-03 11:47:17 +02:00
qcursor_p.h
qdnd.cpp Tidy nullptr usage 2019-12-06 12:13:20 +01:00
qdnd_p.h Merge remote-tracking branch 'origin/5.13' into 5.14 2019-10-28 10:50:03 +01:00
qdrag.cpp Doc: Fix documentation warnings for Qt GUI 2020-11-19 12:28:45 +01:00
qdrag.h Remove deprecated members from several QtGui classes 2020-04-27 12:21:29 +02:00
qevent.cpp Revert "Use Pressed/Released eventpoint state with native gesture begin/end" 2021-06-03 21:55:32 +00:00
qevent.h Add storage for (pixel) deltas and fingerCount to QNativeGestureEvent 2021-04-27 20:12:50 +02:00
qevent_p.h Consolidate static_asserts for event sizes 2020-11-17 11:48:28 +01:00
qeventpoint.cpp Doc: Use \deprecated instead of \obsolete 2021-05-26 13:06:56 +02:00
qeventpoint.h Make QEventPoint an idiomatic value type 2020-11-16 09:28:01 +01:00
qeventpoint_p.h Make QEventPoint an idiomatic value type 2020-11-16 09:28:01 +01:00
qgenericplugin.cpp
qgenericplugin.h Replace Q_NULLPTR with nullptr where possible 2017-09-19 11:53:55 +00:00
qgenericpluginfactory.cpp
qgenericpluginfactory.h
qguiapplication.cpp macOS: allow Qt::AA_DontShowShortcutsInContextMenus overrides 2021-06-07 17:14:14 +02:00
qguiapplication.h Rejig native interface plumbing 2021-05-12 22:02:05 +02:00
qguiapplication_p.h QtGui: Fix include convention 2021-06-02 23:02:45 +02:00
qguivariant.cpp Assert that either both or neither pointer are nullptr 2021-02-24 13:43:41 +01:00
qhighdpiscaling.cpp Parse QT_SCREEN_SCALE_FACTORS spec only once 2021-05-03 13:33:43 +02:00
qhighdpiscaling_p.h Parse QT_SCREEN_SCALE_FACTORS spec only once 2021-05-03 13:33:43 +02:00
qinputdevice.cpp QInputDevice: Parent default keyboard to core app singleton 2020-12-04 15:09:46 +01:00
qinputdevice.h Address API review comments for QInput/QPointingDevice 2020-11-03 13:06:15 +01:00
qinputdevice_p.h Address API review comments for QInput/QPointingDevice 2020-11-03 13:06:15 +01:00
qinputdevicemanager.cpp QInputDeviceManager: replace a QMap<enum,int> with a std::array<int,#enum-values> 2019-06-06 08:23:02 +02:00
qinputdevicemanager_p.h QInputDeviceManager: replace a QMap<enum,int> with a std::array<int,#enum-values> 2019-06-06 08:23:02 +02:00
qinputdevicemanager_p_p.h QInputDeviceManager: initialize device counts 2020-01-09 10:45:48 +02:00
qinputmethod.cpp Pass QVariant by reference, address ### Qt 6 comment 2020-06-09 14:22:51 +02:00
qinputmethod.h Pass QVariant by reference, address ### Qt 6 comment 2020-06-09 14:22:51 +02:00
qinputmethod_p.h More nullptr usage in headers 2019-03-14 07:37:52 +00:00
qinternalmimedata.cpp Cleanup API of QMimeData 2020-09-21 14:56:09 +02:00
qinternalmimedata_p.h Cleanup API of QMimeData 2020-09-21 14:56:09 +02:00
qkeymapper.cpp Type erase native interfaces via string instead of typeid 2021-05-20 17:02:38 +02:00
qkeymapper_p.h Rejig native interface plumbing 2021-05-12 22:02:05 +02:00
qkeysequence.cpp Replace discouraged Q_MOVABLE_TYPE by Q_RELOCATABLE_TYPE 2020-11-30 17:16:21 +01:00
qkeysequence.h Centralize the implementation of move assignment operators 2020-10-03 11:47:17 +02:00
qkeysequence_p.h Long live QKeyCombination! 2020-09-03 07:00:31 +02:00
qoffscreensurface.cpp Type erase native interfaces via string instead of typeid 2021-05-20 17:02:38 +02:00
qoffscreensurface.h Move QNativeInterface helpers to their own header file 2021-05-10 10:56:56 +02:00
qoffscreensurface_p.h Add QOffScreenSurface platform API abstraction 2020-08-27 23:35:16 +03:00
qoffscreensurface_platform.h Rejig native interface plumbing 2021-05-12 22:02:05 +02:00
qopenglcontext.cpp Type erase native interfaces via string instead of typeid 2021-05-20 17:02:38 +02:00
qopenglcontext.h Move QNativeInterface helpers to their own header file 2021-05-10 10:56:56 +02:00
qopenglcontext_p.h Another round of 0->nullptr cleanup 2020-07-31 12:56:50 +02:00
qopenglcontext_platform.h Rejig native interface plumbing 2021-05-12 22:02:05 +02:00
qpaintdevicewindow.cpp Introduce QWindow::paintEvent with QPA plumbing 2020-08-26 16:44:53 +02:00
qpaintdevicewindow.h Introduce QWindow::paintEvent with QPA plumbing 2020-08-26 16:44:53 +02:00
qpaintdevicewindow_p.h
qpalette.cpp Doc: Use \deprecated instead of \obsolete 2021-05-26 13:06:56 +02:00
qpalette.h Unwrap private QPalette data member 2020-10-14 23:43:38 +02:00
qpixelformat.cpp Port Q_STATIC_ASSERT(_X) to static_assert 2020-06-19 19:38:23 +02:00
qpixelformat.h QPixelFormat: Fix warning about mixing different enums 2020-08-23 02:34:56 +02:00
qplatformclipboard.cpp Tidy nullptr usage 2019-12-06 12:13:20 +01:00
qplatformclipboard.h QtGui: Use Q_DISABLE_COPY_MOVE for QPA interface classes 2018-12-13 07:13:26 +00:00
qplatformcursor.cpp Make bytes-per-line safe for int overflow 2020-02-20 16:11:02 +01:00
qplatformcursor.h Move the tooltip out of the way of very large mouse cursors 2019-12-09 17:43:22 +01:00
qplatformdialoghelper.cpp QString: plaster more and more [[nodiscard]] 2020-12-03 06:50:37 +01:00
qplatformdialoghelper.h Remove dead code 2020-10-12 14:49:50 +02:00
qplatformdrag.cpp Make sure we can build with -no-feature-draganddrop 2018-05-29 18:31:35 +00:00
qplatformdrag.h QtGui: Use Q_DISABLE_COPY_MOVE for QPA interface classes 2018-12-13 07:13:26 +00:00
qplatformgraphicsbuffer.cpp Remove last remaining bits of QtPlatformHeaders 2020-08-04 07:12:32 +02:00
qplatformgraphicsbuffer.h Merge remote-tracking branch 'origin/5.12' into 5.13 2019-03-20 14:09:30 +01:00
qplatformgraphicsbufferhelper.cpp Add ; to Q_UNUSED 2020-07-07 11:51:48 +02:00
qplatformgraphicsbufferhelper.h Move backing store OpenGL support to the platformcompositor module 2020-02-03 22:05:44 +01:00
qplatforminputcontext.cpp Make setSelectionOnFocusObject() take native pixels 2021-02-02 10:22:52 +01:00
qplatforminputcontext.h Add geometry accessors to QPlatformInputContext 2021-02-01 20:06:52 +01:00
qplatforminputcontext_p.h
qplatforminputcontextfactory.cpp Tidy nullptr usage 2019-12-06 12:13:20 +01:00
qplatforminputcontextfactory_p.h
qplatforminputcontextplugin.cpp
qplatforminputcontextplugin_p.h Replace 0 with nullptr 2018-07-19 15:47:09 +00:00
qplatformintegration.cpp Add a platform capability indicating support for QRhi-based rendering 2021-01-04 17:30:43 +01:00
qplatformintegration.h Add a platform capability indicating support for QRhi-based rendering 2021-01-04 17:30:43 +01:00
qplatformintegrationfactory.cpp
qplatformintegrationfactory_p.h
qplatformintegrationplugin.cpp Add ; to Q_UNUSED 2020-07-07 11:51:48 +02:00
qplatformintegrationplugin.h Replace 0 with nullptr 2018-07-19 15:47:09 +00:00
qplatformmenu.cpp
qplatformmenu.h Move private platform interfaces to private QPA headers 2020-07-20 17:47:35 +02:00
qplatformmenu_p.h Move QNativeInterface helpers to their own header file 2021-05-10 10:56:56 +02:00
qplatformnativeinterface.cpp Add ; to Q_UNUSED 2020-07-07 11:51:48 +02:00
qplatformnativeinterface.h MetaObject: Store the QMetaType of the methods 2020-06-02 22:42:15 +02:00
qplatformoffscreensurface.cpp Add QPlatformSurface::screen() const 2017-09-04 11:36:50 +00:00
qplatformoffscreensurface.h Rejig native interface plumbing 2021-05-12 22:02:05 +02:00
qplatformopenglcontext.cpp Tidy nullptr usage 2019-12-06 12:13:20 +01:00
qplatformopenglcontext.h Rejig native interface plumbing 2021-05-12 22:02:05 +02:00
qplatformscreen.cpp Make resizeMaximizedWindows() preserve native geometry 2021-05-11 18:39:07 +02:00
qplatformscreen.h Add QPlatformScreen::colorSpace() 2021-01-25 17:21:54 +01:00
qplatformscreen_p.h Expose the native interfaces of QScreen/QWindow 2021-06-07 12:17:46 +00:00
qplatformservices.cpp
qplatformservices.h QtGui: Use Q_DISABLE_COPY_MOVE for QPA interface classes 2018-12-13 07:13:26 +00:00
qplatformsessionmanager.cpp Add ; to Q_UNUSED 2020-07-07 11:51:48 +02:00
qplatformsessionmanager.h QtGui: Use Q_DISABLE_COPY_MOVE for QPA interface classes 2018-12-13 07:13:26 +00:00
qplatformsharedgraphicscache.cpp Use QList instead of QVector in gui implementation 2020-07-07 20:35:05 +02:00
qplatformsharedgraphicscache.h Use QList instead of QVector in gui 2020-06-29 19:19:47 +02:00
qplatformsurface.cpp Add debug logging operator for QPlatformSurface 2018-07-31 11:26:56 +00:00
qplatformsurface.h QtGui: Use Q_DISABLE_COPY_MOVE for QPA interface classes 2018-12-13 07:13:26 +00:00
qplatformsystemtrayicon.cpp
qplatformsystemtrayicon.h MetaObject: Store the QMetaType of the methods 2020-06-02 22:42:15 +02:00
qplatformtheme.cpp Account for multiple screens when computing QSizeGrip available geometry 2021-03-24 00:54:02 +00:00
qplatformtheme.h Account for multiple screens when computing QSizeGrip available geometry 2021-03-24 00:54:02 +00:00
qplatformtheme_p.h QShortcut: Properly port to the new configure system 2019-10-25 12:12:39 +02:00
qplatformthemefactory.cpp
qplatformthemefactory_p.h
qplatformthemeplugin.cpp
qplatformthemeplugin.h Replace 0 with nullptr 2018-07-19 15:47:09 +00:00
qplatformwindow.cpp Fix handling of virtual/native pixels in QAndroidPlatformWindow 2021-02-23 15:15:45 +01:00
qplatformwindow.h Move private platform interfaces to private QPA headers 2020-07-20 17:47:35 +02:00
qplatformwindow_p.h Expose the native interfaces of QScreen/QWindow 2021-06-07 12:17:46 +00:00
qpointingdevice.cpp Add grabber context pointers 2021-05-01 19:40:36 +02:00
qpointingdevice.h Replace discouraged Q_MOVABLE_TYPE by Q_RELOCATABLE_TYPE 2020-11-30 17:16:21 +01:00
qpointingdevice_p.h Add grabber context pointers 2021-05-01 19:40:36 +02:00
qrasterwindow.cpp QtGui: Unify license headers 2019-01-29 10:41:31 +00:00
qrasterwindow.h Replace Q_NULLPTR with nullptr where possible 2017-09-19 11:53:55 +00:00
qscreen.cpp Expose the native interfaces of QScreen/QWindow 2021-06-07 12:17:46 +00:00
qscreen.h Expose the native interfaces of QScreen/QWindow 2021-06-07 12:17:46 +00:00
qscreen_p.h Remove QScreen::orientationUpdateMask 2020-05-07 13:48:08 +00:00
qsessionmanager.cpp Remove "fallback session management" 2020-09-01 10:16:15 +02:00
qsessionmanager.h
qsessionmanager_p.h Remove excess "virtual" keyword from destructors in Qt Gui 2018-09-25 14:34:42 +00:00
qshapedpixmapdndwindow.cpp Deprecate implicit QPixmap conversion to QBitmap 2020-09-17 13:26:50 +02:00
qshapedpixmapdndwindow_p.h More nullptr usage in headers 2019-03-14 07:37:52 +00:00
qshortcut.cpp Add multi key bindings to QShortcut 2020-11-04 10:32:38 +02:00
qshortcut.h Add multi key bindings to QShortcut 2020-11-04 10:32:38 +02:00
qshortcut_p.h Add multi key bindings to QShortcut 2020-11-04 10:32:38 +02:00
qshortcutmap.cpp Improve and expand QShortcutMap debug output 2021-02-03 09:46:40 +01:00
qshortcutmap_p.h iOS: Handle keyboard events when using an external keyboard 2021-01-20 12:29:38 +01:00
qsimpledrag.cpp Change QWindow/QWidget::map(To/From)(Global/Parent) to operate in float 2020-07-14 10:25:47 +02:00
qsimpledrag_p.h QBasicDrag: Send QDragMoveEvent when modifiers change 2020-05-14 15:19:47 +03:00
qstylehints.cpp Tidy nullptr usage 2019-12-06 12:13:20 +01:00
qstylehints.h Add mouseDoubleClickDistance and touchDoubleTapDistance to QStyleHints 2019-07-08 20:29:17 +02:00
qsurface.cpp Add a dedicated QWindow surface type for D3D 2021-01-04 10:37:11 +00:00
qsurface.h Add a dedicated QWindow surface type for D3D 2021-01-04 10:37:11 +00:00
qsurfaceformat.cpp Support EGL protected content extension 2021-03-09 11:58:12 +01:00
qsurfaceformat.h Support EGL protected content extension 2021-03-09 11:58:12 +01:00
qt_gui_pch.h Update precompiled headers 2019-04-09 21:57:17 +00:00
qtestsupport_gui.cpp Refactor testlib touch functions into qtestsupport_gui and _widgets 2020-09-08 08:02:15 +02:00
qtestsupport_gui.h Replace Q_REQUIRED_RESULT with [[nodiscard]] 2020-09-25 07:10:45 +02:00
qtguiglobal.h
qtguiglobal_p.h
qwindow.cpp Expose the native interfaces of QScreen/QWindow 2021-06-07 12:17:46 +00:00
qwindow.h Expose the native interfaces of QScreen/QWindow 2021-06-07 12:17:46 +00:00
qwindow_p.h Remove unused virtual method QWindowPrivate::allowClickThrough 2020-07-07 01:09:30 +02:00
qwindowdefs.h Clean up qcontainerfwd.h 2020-11-03 16:28:14 +01:00
qwindowdefs_win.h Introduce platform API abstraction for QOpenGLContext 2020-07-02 10:27:50 +02:00
qwindowsysteminterface.cpp Remove Qt6 switches from QtGui 2021-05-05 19:26:56 +02:00
qwindowsysteminterface.h Remove Qt6 switches from QtGui 2021-05-05 19:26:56 +02:00
qwindowsysteminterface_p.h Add storage for (pixel) deltas and fingerCount to QNativeGestureEvent 2021-04-27 20:12:50 +02:00