diff options
-rw-r--r-- | ui/qt/bluetooth_att_server_attributes_dialog.cpp | 7 | ||||
-rw-r--r-- | ui/qt/bluetooth_att_server_attributes_dialog.h | 1 | ||||
-rw-r--r-- | ui/qt/bluetooth_devices_dialog.cpp | 7 | ||||
-rw-r--r-- | ui/qt/bluetooth_devices_dialog.h | 1 | ||||
-rw-r--r-- | ui/qt/bluetooth_hci_summary_dialog.cpp | 7 | ||||
-rw-r--r-- | ui/qt/bluetooth_hci_summary_dialog.h | 1 |
6 files changed, 24 insertions, 0 deletions
diff --git a/ui/qt/bluetooth_att_server_attributes_dialog.cpp b/ui/qt/bluetooth_att_server_attributes_dialog.cpp index 530efe67d0..c427895e52 100644 --- a/ui/qt/bluetooth_att_server_attributes_dialog.cpp +++ b/ui/qt/bluetooth_att_server_attributes_dialog.cpp @@ -127,6 +127,13 @@ void BluetoothAttServerAttributesDialog::changeEvent(QEvent *event) } +void BluetoothAttServerAttributesDialog::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 BluetoothAttServerAttributesDialog::tableContextMenu(const QPoint &pos) { context_menu_.exec(ui->tableTreeWidget->viewport()->mapToGlobal(pos)); diff --git a/ui/qt/bluetooth_att_server_attributes_dialog.h b/ui/qt/bluetooth_att_server_attributes_dialog.h index 46835308fd..292bda217b 100644 --- a/ui/qt/bluetooth_att_server_attributes_dialog.h +++ b/ui/qt/bluetooth_att_server_attributes_dialog.h @@ -64,6 +64,7 @@ signals: void goToPacket(int packet_num); protected: + void keyPressEvent(QKeyEvent *event); protected slots: void changeEvent(QEvent* event); 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)); diff --git a/ui/qt/bluetooth_devices_dialog.h b/ui/qt/bluetooth_devices_dialog.h index ddfe732d18..98691dface 100644 --- a/ui/qt/bluetooth_devices_dialog.h +++ b/ui/qt/bluetooth_devices_dialog.h @@ -63,6 +63,7 @@ signals: void goToPacket(int packet_num); protected: + void keyPressEvent(QKeyEvent *event); protected slots: void changeEvent(QEvent* event); 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)); diff --git a/ui/qt/bluetooth_hci_summary_dialog.h b/ui/qt/bluetooth_hci_summary_dialog.h index 1ac24a0d25..2fd3999067 100644 --- a/ui/qt/bluetooth_hci_summary_dialog.h +++ b/ui/qt/bluetooth_hci_summary_dialog.h @@ -64,6 +64,7 @@ signals: void goToPacket(int packet_num); protected: + void keyPressEvent(QKeyEvent *event); protected slots: void changeEvent(QEvent* event); |