From c2c3452ba5b4c32d0c2d5df9193bf89986623ab5 Mon Sep 17 00:00:00 2001 From: Jake Petroules Date: Fri, 10 Mar 2017 16:55:04 -0800 Subject: Add new API to control whether shortcuts are shown in context menus Shortcuts are universally not shown on macOS or mobile platforms, making applications look very obviously out of place. Windows and GNOME desktop environments almost never use them. Only KDE appears to do so commonly; default accordingly. Task-number: QTBUG-49435 Change-Id: Ieac4cee57b15a02be5258f3d07749af6316af62b Reviewed-by: Gabriel de Dietrich --- src/gui/kernel/qstylehints.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gui/kernel/qstylehints.h') diff --git a/src/gui/kernel/qstylehints.h b/src/gui/kernel/qstylehints.h index b9bf428edd..3230149247 100644 --- a/src/gui/kernel/qstylehints.h +++ b/src/gui/kernel/qstylehints.h @@ -90,6 +90,7 @@ public: int cursorFlashTime() const; bool showIsFullScreen() const; bool showIsMaximized() const; + bool showShortcutsInContextMenus() const; int passwordMaskDelay() const; QChar passwordMaskCharacter() const; qreal fontSmoothingGamma() const; -- cgit v1.2.3