diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-06-28 16:36:02 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-06-28 22:13:02 +0000 |
commit | 48d24fe2e4d6ce6d91805a3425be0954126acc84 (patch) | |
tree | adb705b21fc931e32785469c1df11f19168f2098 /examples | |
parent | d0fdebbc378f2d5c1993eee56b63e27bcff04ca5 (diff) |
QQuickAbstractButton: fix shortcut handling
QQuickAbstractButton::itemChange() already grabs and ungrabs the
shortcut when the button's visibility changes, but setShortcut() was
grabbing the shortcut without checking the button's visibility, so a
hidden button ended up grabbing a shortcut. Furthermore, make sure to
ungrab the shortcut on destruction to avoid leaving a dangling pointer
to the application shortcut map.
Change-Id: Ie93c2d073d7072abad271ba59a45428e3300cc28
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions