diff options
author | Gerald Combs <gerald@wireshark.org> | 2016-03-22 16:17:31 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2016-03-23 18:07:23 +0000 |
commit | e947d362f87534027e6daa75aae531901e077e31 (patch) | |
tree | 631493cc2132eb4f714e37b8c32e06779f7cb710 /ui/qt/syntax_line_edit.h | |
parent | aedc4af6c11817c186771c9ae3ba2fe1f49567cb (diff) | |
download | wireshark-e947d362f87534027e6daa75aae531901e077e31.tar.gz |
Override shortcuts in SyntaxLineEdit.
Add an ::event member function to SyntaxLineEdit that looks for
ShortcutOverride events and accepts them. This keeps them from being
interpreted as shortcuts in the main window.
Note that the current code accepts everything, and that we should probably
restrict this to AltGr only.
Bug: 12270
Change-Id: I01765ce2447d220a102d97fcbbe47579341ce075
Reviewed-on: https://code.wireshark.org/review/14570
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/syntax_line_edit.h')
-rw-r--r-- | ui/qt/syntax_line_edit.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/qt/syntax_line_edit.h b/ui/qt/syntax_line_edit.h index 013f69dd62..a8c70163e3 100644 --- a/ui/qt/syntax_line_edit.h +++ b/ui/qt/syntax_line_edit.h @@ -69,6 +69,7 @@ protected: // x = Start position, y = length QPoint getTokenUnderCursor(); + virtual bool event(QEvent *event); void completionKeyPressEvent(QKeyEvent *event); void completionFocusInEvent(QFocusEvent *event); |