diff options
author | Roland Knall <rknall@gmail.com> | 2019-11-07 11:56:22 +0000 |
---|---|---|
committer | Roland Knall <rknall@gmail.com> | 2019-11-07 13:15:39 +0000 |
commit | 63e437c02021dc184e1ae29908b0b083b6425dcd (patch) | |
tree | 619fb1e3162ab769ce961f194e1932728c3d50dc /ui/qt/main_window.cpp | |
parent | 434996197247af81b278a7a135195d72c091d56b (diff) |
Qt: Move Signal/Slots to DisplayFilterEdit
Move the handling of Signal/Slots for the display filters to the
LineEdit class, instead of having it being handled in the mainwindow
Change-Id: Ibddea7d31b6d0abec91baa46ffb6965f64db94d6
Reviewed-on: https://code.wireshark.org/review/35012
Petri-Dish: Roland Knall <rknall@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'ui/qt/main_window.cpp')
-rw-r--r-- | ui/qt/main_window.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ui/qt/main_window.cpp b/ui/qt/main_window.cpp index 543cf35123..a147909e30 100644 --- a/ui/qt/main_window.cpp +++ b/ui/qt/main_window.cpp @@ -373,15 +373,11 @@ MainWindow::MainWindow(QWidget *parent) : #endif df_combo_box_ = new DisplayFilterCombo(this); - const DisplayFilterEdit *df_edit = qobject_cast<DisplayFilterEdit *>(df_combo_box_->lineEdit()); funnel_statistics_ = new FunnelStatistics(this, capture_file_); - connect(df_edit, SIGNAL(textChanged(QString)), funnel_statistics_, SLOT(displayFilterTextChanged(QString))); - connect(funnel_statistics_, SIGNAL(setDisplayFilter(QString)), df_edit, SLOT(setText(QString))); - connect(funnel_statistics_, SIGNAL(applyDisplayFilter()), df_combo_box_, SLOT(applyDisplayFilter())); + connect(funnel_statistics_, &FunnelStatistics::setDisplayFilter, this, &MainWindow::setDisplayFilter); connect(funnel_statistics_, SIGNAL(openCaptureFile(QString, QString)), this, SLOT(openCaptureFile(QString, QString))); - connect(this, SIGNAL(displayFilterSuccess(bool)), df_edit, SLOT(displayFilterSuccess(bool))); file_set_dialog_ = new FileSetDialog(this); connect(file_set_dialog_, SIGNAL(fileSetOpenCaptureFile(QString)), |