diff options
author | Michal Labedzki <michal.labedzki@tieto.com> | 2016-04-18 19:31:17 +0200 |
---|---|---|
committer | Michal Labedzki <michal.labedzki@tieto.com> | 2016-05-20 14:53:13 +0000 |
commit | 9cbad0207eda99f476393e1628cf9562b3730132 (patch) | |
tree | 9e383dc526b795298af307c0aeba51707d0fd3b9 /ui/qt/bluetooth_hci_summary_dialog.cpp | |
parent | 7a7d790e7b42d133fceb1a1cf3ef3e3488dde84d (diff) |
Qt/Bluetooth: Allow to use Enter button for jump to frames
Implement keyPressEvent and do nothing... However it "takes focus"
from button box and jump to frame that some items in tree widget point.
Change-Id: Ib08f1588f20bce66fa945bf952770600c625233c
Reviewed-on: https://code.wireshark.org/review/15455
Petri-Dish: Michal Labedzki <michal.labedzki@tieto.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com>
Tested-by: Michal Labedzki <michal.labedzki@tieto.com>
Diffstat (limited to 'ui/qt/bluetooth_hci_summary_dialog.cpp')
-rw-r--r-- | ui/qt/bluetooth_hci_summary_dialog.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/qt/bluetooth_hci_summary_dialog.cpp b/ui/qt/bluetooth_hci_summary_dialog.cpp index fffe12a449..89570c909c 100644 --- a/ui/qt/bluetooth_hci_summary_dialog.cpp +++ b/ui/qt/bluetooth_hci_summary_dialog.cpp @@ -180,6 +180,13 @@ void BluetoothHciSummaryDialog::changeEvent(QEvent *event) } +void BluetoothHciSummaryDialog::keyPressEvent(QKeyEvent *) +{ +/* NOTE: Do nothing, but in real it "takes focus" from button_box so allow user + * to use Enter button to jump to frame from tree widget */ +} + + void BluetoothHciSummaryDialog::tableContextMenu(const QPoint &pos) { context_menu_.exec(ui->tableTreeWidget->viewport()->mapToGlobal(pos)); |