diff options
author | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2010-05-04 11:59:27 (GMT) |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2010-05-20 13:22:47 (GMT) |
commit | 10946afd136ea5c31ed107663c5f99f326a2beb2 (patch) | |
tree | 3f2d4ccef7ba89c744e650adad66e09fb3fb3f45 /src/gui/kernel/qguivariant.cpp | |
parent | 59b0bce57a9f8e16c735a99463c208a6c11bb1ba (diff) | |
download | Qt-10946afd136ea5c31ed107663c5f99f326a2beb2.zip Qt-10946afd136ea5c31ed107663c5f99f326a2beb2.tar.gz Qt-10946afd136ea5c31ed107663c5f99f326a2beb2.tar.bz2 |
Cocoa: QShortcut(Qt::Key_Enter) does not show in the menu bar
The reason is that cocoa expects the unicode control character for
"enter", rather than the glyph showing an arrow. So rather than
using the glyph-table from QKeySequence, we should use a table
containing a mapping from Qt::Key to Cocoa control key. Luckily,
such a table exists allready in qt_cocoa_helpers, but reversed (
cocoa key to Qt::Key). So this patch creates a function that
binds all this together.
Reviewed-by: cduclos
Diffstat (limited to 'src/gui/kernel/qguivariant.cpp')
0 files changed, 0 insertions, 0 deletions