diff options
author | Gerald Combs <gerald@wireshark.org> | 2021-10-10 16:05:57 -0700 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-10-11 17:03:21 +0000 |
commit | 11c58e78f74f22a3b485ca59ae8de837435faf5f (patch) | |
tree | be13b218345c00488d06d406f97fa23364b1b0b3 /ui/qt/capture_file_dialog.cpp | |
parent | e5bcf6b40223c3cfd13438861d4fb88bbd4b5934 (diff) |
Qt: More new-style signals+slot conversions.
Diffstat (limited to 'ui/qt/capture_file_dialog.cpp')
-rw-r--r-- | ui/qt/capture_file_dialog.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/qt/capture_file_dialog.cpp b/ui/qt/capture_file_dialog.cpp index 8015a27716..bb56b7b2be 100644 --- a/ui/qt/capture_file_dialog.cpp +++ b/ui/qt/capture_file_dialog.cpp @@ -603,7 +603,7 @@ void CaptureFileDialog::addPreview(QVBoxLayout &v_box) { preview_grid->addWidget(&preview_first_elapsed_, 3, 1); preview_labels_ << lbl << &preview_first_elapsed_; - connect(this, SIGNAL(currentChanged(const QString &)), this, SLOT(preview(const QString &))); + connect(this, &CaptureFileDialog::currentChanged, this, &CaptureFileDialog::preview); preview(""); } @@ -692,7 +692,7 @@ QDialogButtonBox *CaptureFileDialog::addHelpButton(topic_action_e help_topic) if (button_box) { button_box->addButton(QDialogButtonBox::Help); - connect(button_box, SIGNAL(helpRequested()), this, SLOT(on_buttonBox_helpRequested())); + connect(button_box, &QDialogButtonBox::helpRequested, this, &CaptureFileDialog::on_buttonBox_helpRequested); } return button_box; } @@ -784,8 +784,8 @@ check_savability_t CaptureFileDialog::exportSelectedPackets(QString &file_name, if (button_box) { save_bt_ = button_box->button(QDialogButtonBox::Save); if (save_bt_) { - connect(&packet_range_group_box_, SIGNAL(validityChanged(bool)), - save_bt_, SLOT(setEnabled(bool))); + connect(&packet_range_group_box_, &PacketRangeGroupBox::validityChanged, + save_bt_, &QPushButton::setEnabled); } } |