summaryrefslogtreecommitdiffstats
path: root/src/sql/doc/snippets/sqldatabase
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2023-01-03 18:14:27 +0100
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2023-01-04 15:49:11 +0100
commitba639edd276daca27aeac6c073984e688466f18c (patch)
tree3b78d2ab084dabc8c6158731e4bea55d3897ef85 /src/sql/doc/snippets/sqldatabase
parent9af5a70c55c9ec85113303fb48af405304335d1a (diff)
Reflect QStyleHints in AA_DontShowShortcutsInContextMenus
There are two ways to override whether shortcuts (key sequences) should be shown in menus, QStyleHints::::showShortcutsInContextMenus() and the Qt::AA_DontShowShortcutsInContextMenus application attribute, but only the latter is checked by our own menu implementations. This was confusing, as overriding the style hint had no effect. It makes sense for the QStyleHint to be based on the platform style hint, but since we also allows overriding it, the logic in QGuiApp that initializes Qt::AA_DontShowShortcutsInContextMenus should be based on the QStyleHint. Note that the inverse relationship is not maintained, as the app attribute should not affect the style hints. This creates a somewhat awkward situation in terms of when you need to override the behavior, so we might consider deprecating one of the options. Fixes: QTBUG-109590 Task-number: QTBUG-69452 Change-Id: I366c17ff00fd8ae10553bbfb88d162ffd2c8040f Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/sql/doc/snippets/sqldatabase')
0 files changed, 0 insertions, 0 deletions