summaryrefslogtreecommitdiff
path: root/ui/qt/main_window_slots.cpp
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2017-02-18 22:40:49 +0100
committerAnders Broman <a.broman58@gmail.com>2017-02-20 05:53:44 +0000
commitb3f435ef54686718aea652a6d6725b3cd62dd1e0 (patch)
tree5183ac0dee5acd1f90c9779614303dacb803fdfb /ui/qt/main_window_slots.cpp
parentd1b943dd7d39fa663e9bf9100b30537a67b2e8ba (diff)
downloadwireshark-b3f435ef54686718aea652a6d6725b3cd62dd1e0.tar.gz
Qt: Add "Reset Layout"
Add menu item "Reset Layout" to manually reset panes to equal sizes. Change-Id: I1efbf655462e25053062e03f8038dc20f9f555c0 Reviewed-on: https://code.wireshark.org/review/20173 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/qt/main_window_slots.cpp')
-rw-r--r--ui/qt/main_window_slots.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/qt/main_window_slots.cpp b/ui/qt/main_window_slots.cpp
index 7898f6c352..320fb27d6c 100644
--- a/ui/qt/main_window_slots.cpp
+++ b/ui/qt/main_window_slots.cpp
@@ -2481,6 +2481,14 @@ void MainWindow::on_actionViewColorizeNewColoringRule_triggered()
colorizeConversation(true);
}
+void MainWindow::on_actionViewResetLayout_triggered()
+{
+ recent.gui_geometry_main_upper_pane = 0;
+ recent.gui_geometry_main_lower_pane = 0;
+
+ applyRecentPaneGeometry();
+}
+
void MainWindow::on_actionViewResizeColumns_triggered()
{
for (int col = 0; col < packet_list_->packetListModel()->columnCount(); col++) {