Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit f6997fb3 authored by Laurent Montel's avatar Laurent Montel 😁

Port to new connect api

parent 80d484b0
......@@ -188,12 +188,12 @@ CSVImportDialog::CSVImportDialog(QWidget *parent)
reloadCodecs();
connect(mUrlRequester, SIGNAL(returnPressed(QString)), this, SLOT(setFile(QString)));
connect(mUrlRequester, QOverload<const QString &>::of(&KUrlRequester::returnPressed), this, &CSVImportDialog::setFile);
connect(mUrlRequester, &KUrlRequester::urlSelected, this, &CSVImportDialog::setUrl);
connect(mUrlRequester->lineEdit(), &QLineEdit::textChanged, this, &CSVImportDialog::urlChanged);
connect(mDelimiterGroup, SIGNAL(buttonClicked(int)), this, SLOT(delimiterClicked(int)));
connect(mDelimiterEdit, SIGNAL(returnPressed()), this, SLOT(customDelimiterChanged()));
connect(mDelimiterEdit, SIGNAL(textChanged(QString)), this, SLOT(customDelimiterChanged(QString)));
connect(mDelimiterEdit, QOverload<>::of(&QLineEdit::returnPressed), this, [this]() { customDelimiterChanged(); });
connect(mDelimiterEdit, QOverload<const QString &>::of(&QLineEdit::textChanged), [this](const QString &str) { customDelimiterChanged(str); });
connect(mComboQuote, SIGNAL(activated(QString)), this, SLOT(textQuoteChanged(QString)));
connect(mCodecCombo, SIGNAL(activated(QString)), this, SLOT(codecChanged()));
connect(mSkipFirstRow, SIGNAL(toggled(bool)), this, SLOT(skipFirstRowChanged(bool)));
......
......@@ -68,8 +68,8 @@ void SendmailConfigWidget::init()
// is saved in the config.
d->ui.kcfg_host->setText(QStandardPaths::findExecutable(QStringLiteral("sendmail")));
}
connect(d->ui.kcfg_host->lineEdit(), SIGNAL(textChanged(QString)),
SLOT(slotTextChanged(QString)));
connect(d->ui.kcfg_host->lineEdit(), QOverload<const QString &>::of(&QLineEdit::textChanged),
this, &SendmailConfigWidget::slotTextChanged);
slotTextChanged(d->ui.kcfg_host->text());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment