diff options
author | Gerald Combs <gerald@wireshark.org> | 2016-06-12 16:07:30 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2016-06-13 18:44:26 +0000 |
commit | b8201aef9d3375dfaaa31aa00ea4686d91c2cf03 (patch) | |
tree | 27df5054d45b859136104ce0db0bcbaa685a7650 /ui/qt/main_window_slots.cpp | |
parent | 1dcaeb33ca8b219180a1f131a7fbef58213f040a (diff) |
Qt: Main window tab behavior.
Make the main window tab order more closely match the GTK+ UI. Draw a
focus rect in the byte view text while we're here.
Change-Id: I04212c14ea7f0d6865b709533246760adc02f45a
Reviewed-on: https://code.wireshark.org/review/15862
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/main_window_slots.cpp')
-rw-r--r-- | ui/qt/main_window_slots.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ui/qt/main_window_slots.cpp b/ui/qt/main_window_slots.cpp index 487c05ba78..4d4709bba0 100644 --- a/ui/qt/main_window_slots.cpp +++ b/ui/qt/main_window_slots.cpp @@ -1603,6 +1603,15 @@ void MainWindow::openTapParameterDialog() openTapParameterDialog(cfg_str, NULL, NULL); } +void MainWindow::byteViewTabChanged(int tab_index) +{ + QWidget *new_tab = byte_view_tab_->widget(tab_index); + if (new_tab) { + setTabOrder(proto_tree_, new_tab); + setTabOrder(new_tab, df_combo_box_->lineEdit()); // XXX Toolbar instead? + } +} + // File Menu void MainWindow::on_actionFileOpen_triggered() |