aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-09-03 12:21:14 +0000
committerEvan Huus <eapache@gmail.com>2013-09-03 12:21:14 +0000
commit16cbf7d4cfe666fc2ae579460a470ed5c4aab955 (patch)
treefce5d377a8d108efcd5db96a66ccaa2ca85435ae /ui
parent3c08741caeef9b01fb35d573a6fc51cf17cf2c8e (diff)
Parent the list, tree and byte panes from the main UI rather than the
splitters they're actually layed out in. This should let us reorganize the splitters at will (when the prefs change) without reconstructing the panes. svn path=/trunk/; revision=51718
Diffstat (limited to 'ui')
-rw-r--r--ui/qt/main_window.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/qt/main_window.cpp b/ui/qt/main_window.cpp
index cbf13a3103..b483bcacc2 100644
--- a/ui/qt/main_window.cpp
+++ b/ui/qt/main_window.cpp
@@ -278,7 +278,7 @@ void MainWindow::layoutPanes()
master_split_ = new QSplitter(main_ui_->mainStack);
master_split_->setObjectName(QString::fromUtf8("splitterMaster"));
- extra_split_ = new QSplitter(master_split_);
+ extra_split_ = new QSplitter(main_ui_->mainStack);
extra_split_->setObjectName(QString::fromUtf8("splitterExtra"));
switch(prefs.gui_layout_type) {
@@ -326,13 +326,13 @@ void MainWindow::layoutPanes()
g_assert_not_reached();
}
- packet_list_ = new PacketList(parents[0]);
+ packet_list_ = new PacketList(main_ui_->mainStack);
- proto_tree_ = new ProtoTree(parents[1]);
+ proto_tree_ = new ProtoTree(main_ui_->mainStack);
proto_tree_->setHeaderHidden(true);
proto_tree_->installEventFilter(this);
- byte_view_tab_ = new ByteViewTab(parents[2]);
+ byte_view_tab_ = new ByteViewTab(main_ui_->mainStack);
byte_view_tab_->setTabPosition(QTabWidget::South);
byte_view_tab_->setDocumentMode(true);