summaryrefslogtreecommitdiffstats
path: root/qmake/option.cpp
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2013-04-24 15:41:49 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-04-26 09:42:34 +0200
commit4ca105b9bbf5c1e9b539da9522c630574eba3471 (patch)
treeb89051bceb06e305e68d2c7a6f05157094f658ae /qmake/option.cpp
parent8f125985dbebef9ab9db31e8a180d01b7452030e (diff)
Fix shortcut override for menus
Since we use native Cocoa menus, we cannot rely on the normal shortcut handling. Shortcuts can be overridden by the currently focused object in Qt. In order to make that possible we need to send a QShortcutOverride event before accepting any key event. For menus the key event goes from the NSApp directly to the menu, so the shortcutOverride would not work. This is mostly an adaptation of the Qt 4 code. Task-number: QTBUG-30695 Change-Id: Icb4979309d2d6f9606eb9c8abc4130dc79926593 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Diffstat (limited to 'qmake/option.cpp')
0 files changed, 0 insertions, 0 deletions