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 64dc09d2 authored by Laurent Montel's avatar Laurent Montel 😁

Port to new connect api

parent f6997fb3
......@@ -191,12 +191,12 @@ CSVImportDialog::CSVImportDialog(QWidget *parent)
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(mDelimiterGroup, QOverload<int>::of(&QButtonGroup::buttonClicked), this, [this](int val) { delimiterClicked(val); });
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)));
connect(mComboQuote, QOverload<const QString &>::of(&KComboBox::activated), this, [this](const QString &str) { textQuoteChanged(str); });
connect(mCodecCombo, QOverload<const QString &>::of(&KComboBox::activated), this, [this]() { codecChanged(); });
connect(mSkipFirstRow, &QCheckBox::toggled, this, [this](bool b) { skipFirstRowChanged(b); });
connect(mModel, &QCsvModel::finishedLoading, this, &CSVImportDialog::modelFinishedLoading);
......
......@@ -46,7 +46,7 @@ public:
KContacts::AddresseeList contacts() const;
private Q_SLOTS:
private:
void setFile(const QString &);
void setUrl(const QUrl &);
void urlChanged(const QString &);
......
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