diff options
author | Roland Knall <rknall@gmail.com> | 2018-06-01 22:54:49 +0200 |
---|---|---|
committer | Roland Knall <rknall@gmail.com> | 2018-06-01 22:01:20 +0000 |
commit | f4e3d8cbf3b8815f8affb3cb625ff5e8813bd0a8 (patch) | |
tree | a4c3dbbd91c80fdcf8fa8dab19af6875a7352c00 /ui/qt/main_window_slots.cpp | |
parent | 5ff8c3895a41b44486fbc17e05e4a188e3c4827e (diff) |
Qt: Rename MainWelcome
Currently exist two main pages within Wireshark. The first being
the main welcome page and the second the packet capture page. The
first is called "main_welcome.?" and the second is actually the
master_split_ object defined in main_window.h. The first being a
QFrame, the second not.
In preparation for future developments (dockable windows, multiple capture
files), this is being corrected, with the main welcome being renamed
as welcome_page as a first step
Change-Id: I40703e6ed15ff6f6b62b2a3cf31f5636ac6da9ec
Reviewed-on: https://code.wireshark.org/review/27949
Petri-Dish: Roland Knall <rknall@gmail.com>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'ui/qt/main_window_slots.cpp')
-rw-r--r-- | ui/qt/main_window_slots.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ui/qt/main_window_slots.cpp b/ui/qt/main_window_slots.cpp index f3713aa49a..66ddd12417 100644 --- a/ui/qt/main_window_slots.cpp +++ b/ui/qt/main_window_slots.cpp @@ -1456,7 +1456,7 @@ void MainWindow::captureFilterSyntaxChanged(bool valid) void MainWindow::startInterfaceCapture(bool valid, const QString capture_filter) { capture_filter_valid_ = valid; - main_welcome_->setCaptureFilter(capture_filter); + welcome_page_->setCaptureFilter(capture_filter); // The interface tree will update the selected interfaces via its timer // so no need to do anything here. startCapture(); @@ -3711,17 +3711,17 @@ void MainWindow::on_actionCaptureOptions_triggered() connect(capture_interfaces_dialog_, SIGNAL(stopCapture()), this, SLOT(stopCapture())); connect(capture_interfaces_dialog_, SIGNAL(getPoints(int,PointList*)), - this->main_welcome_->getInterfaceFrame(), SLOT(getPoints(int,PointList*))); + this->welcome_page_->getInterfaceFrame(), SLOT(getPoints(int,PointList*))); connect(capture_interfaces_dialog_, SIGNAL(interfacesChanged()), - this->main_welcome_, SLOT(interfaceSelected())); + this->welcome_page_, SLOT(interfaceSelected())); connect(capture_interfaces_dialog_, SIGNAL(interfacesChanged()), - this->main_welcome_->getInterfaceFrame(), SLOT(updateSelectedInterfaces())); + this->welcome_page_->getInterfaceFrame(), SLOT(updateSelectedInterfaces())); connect(capture_interfaces_dialog_, SIGNAL(interfaceListChanged()), - this->main_welcome_->getInterfaceFrame(), SLOT(interfaceListChanged())); + this->welcome_page_->getInterfaceFrame(), SLOT(interfaceListChanged())); connect(capture_interfaces_dialog_, SIGNAL(captureFilterTextEdited(QString)), - this->main_welcome_, SLOT(setCaptureFilterText(QString))); + this->welcome_page_, SLOT(setCaptureFilterText(QString))); // Propagate selection changes from main UI to dialog. - connect(this->main_welcome_, SIGNAL(interfacesChanged()), + connect(this->welcome_page_, SIGNAL(interfacesChanged()), capture_interfaces_dialog_, SLOT(interfaceSelected())); connect(capture_interfaces_dialog_, SIGNAL(setFilterValid(bool, const QString)), @@ -3784,7 +3784,7 @@ void MainWindow::extcap_options_finished(int result) if (result == QDialog::Accepted) { startCapture(); } - this->main_welcome_->getInterfaceFrame()->interfaceListChanged(); + this->welcome_page_->getInterfaceFrame()->interfaceListChanged(); } void MainWindow::showExtcapOptionsDialog(QString &device_name) |