From 56a130a152db73ea37f91d39be7d72f814013236 Mon Sep 17 00:00:00 2001 From: Roland Knall Date: Wed, 25 Oct 2017 15:39:35 +0200 Subject: ByteViewText: Remove epan dependancy Remove all dependancy for the byte_view_text from the epan system, and therefore cleanly separate data and display for further separation of dissection and view Change-Id: Id1ee91b93da4511afa95f24da4cbbf39cbb89b1f Reviewed-on: https://code.wireshark.org/review/24050 Petri-Dish: Roland Knall Tested-by: Petri Dish Buildbot Reviewed-by: Roland Knall --- ui/qt/main_window.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'ui/qt/main_window.cpp') diff --git a/ui/qt/main_window.cpp b/ui/qt/main_window.cpp index 0336b27d52..c2f0718515 100644 --- a/ui/qt/main_window.cpp +++ b/ui/qt/main_window.cpp @@ -476,6 +476,9 @@ MainWindow::MainWindow(QWidget *parent) : packet_list_->setByteViewTab(byte_view_tab_); packet_list_->installEventFilter(this); + connect(packet_list_, SIGNAL(packetSelectionChanged()), + byte_view_tab_, SLOT(packetSelectionChanged())); + main_welcome_ = main_ui_->welcomePage; // Packet list and proto tree must exist before these are called. @@ -685,10 +688,8 @@ MainWindow::MainWindow(QWidget *parent) : connect(proto_tree_, SIGNAL(editProtocolPreference(preference*,pref_module*)), main_ui_->preferenceEditorFrame, SLOT(editPreference(preference*,pref_module*))); - connect(byte_view_tab_, SIGNAL(byteFieldHovered(const QString&)), - main_ui_->statusBar, SLOT(pushByteStatus(const QString&))); - connect(byte_view_tab_, SIGNAL(currentChanged(int)), - this, SLOT(byteViewTabChanged(int))); + connect(byte_view_tab_, SIGNAL(tvbOffsetHovered(tvbuff_t *, int)), + this, SLOT(setTvbOffsetHovered(tvbuff_t *, int))); connect(main_ui_->statusBar, SIGNAL(showExpertInfo()), this, SLOT(on_actionAnalyzeExpertInfo_triggered())); -- cgit v1.2.3