summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@qt.io>2018-01-30 00:32:36 +0100
committerAndy Shaw <andy.shaw@qt.io>2018-02-08 21:24:50 +0000
commit83b0abf928af6cd9f301e3367c439eca22aab323 (patch)
tree9ef3ebd4baa404100c479e72f062962057f81316 /src/widgets
parent3061730c2a3df6432f773c4eb481c5e6e35ec14a (diff)
Use the right attribute when checking if shortcuts are shown
Change-Id: I784965dda64551e6093af817881aa6472d2cc226 Reviewed-by: Jake Petroules <jake.petroules@qt.io> Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io>
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/kernel/qaction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/kernel/qaction.cpp b/src/widgets/kernel/qaction.cpp
index 853e27cd6e..a48eb90048 100644
--- a/src/widgets/kernel/qaction.cpp
+++ b/src/widgets/kernel/qaction.cpp
@@ -1332,7 +1332,7 @@ bool QAction::isShortcutVisibleInContextMenu() const
{
Q_D(const QAction);
if (d->shortcutVisibleInContextMenu == -1) {
- if (QApplication::instance()->testAttribute(Qt::AA_DontShowIconsInMenus))
+ if (QApplication::instance()->testAttribute(Qt::AA_DontShowShortcutsInContextMenus))
return false;
return qApp->styleHints()->showShortcutsInContextMenus();
}