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_devices_dialog.cpp | |
parent | 7a7d790e7b42d133fceb1a1cf3ef3e3488dde84d (diff) | |
download | wireshark-9cbad0207eda99f476393e1628cf9562b3730132.tar.gz |
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_devices_dialog.cpp')
-rw-r--r-- | ui/qt/bluetooth_devices_dialog.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/qt/bluetooth_devices_dialog.cpp b/ui/qt/bluetooth_devices_dialog.cpp index ba6ff1544a..9523105de0 100644 --- a/ui/qt/bluetooth_devices_dialog.cpp +++ b/ui/qt/bluetooth_devices_dialog.cpp @@ -140,6 +140,13 @@ void BluetoothDevicesDialog::changeEvent(QEvent *event) } +void BluetoothDevicesDialog::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 BluetoothDevicesDialog::tableContextMenu(const QPoint &pos) { context_menu_.exec(ui->tableTreeWidget->viewport()->mapToGlobal(pos)); |