Commit a9a66f6e authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use qOverload directly (scripted)

parent 2a5773c7
Pipeline #77326 passed with stage
in 10 minutes and 9 seconds
......@@ -105,7 +105,7 @@ AutoCorrectionWidget::AutoCorrectionWidget(QWidget *parent)
connect(d->ui->abbreviationList, &PimCommon::AutoCorrectionListWidget::deleteSelectedItems, this, &AutoCorrectionWidget::removeAbbreviationEntry);
connect(d->ui->twoUpperLetterList, &PimCommon::AutoCorrectionListWidget::itemSelectionChanged, this, &AutoCorrectionWidget::slotEnableDisableTwoUpperEntry);
connect(d->ui->twoUpperLetterList, &PimCommon::AutoCorrectionListWidget::deleteSelectedItems, this, &AutoCorrectionWidget::removeTwoUpperLetterEntry);
connect(d->ui->autocorrectionLanguage, QOverload<int>::of(&PimCommon::AutoCorrectionLanguage::activated), this, &AutoCorrectionWidget::changeLanguage);
connect(d->ui->autocorrectionLanguage, qOverload<int>(&PimCommon::AutoCorrectionLanguage::activated), this, &AutoCorrectionWidget::changeLanguage);
connect(d->ui->addNonBreakingSpaceInFrench, &QCheckBox::clicked, this, &AutoCorrectionWidget::emitChanged);
connect(d->ui->twoUpperLetter, &QLineEdit::returnPressed, this, &AutoCorrectionWidget::addTwoUpperLetterEntry);
connect(d->ui->abbreviation, &QLineEdit::returnPressed, this, &AutoCorrectionWidget::addAbbreviationEntry);
......
......@@ -164,7 +164,7 @@ void GoogleTranslator::translate()
const QNetworkRequest request(url);
QNetworkReply *reply = mNetworkAccessManager->get(request);
connect(reply, QOverload<QNetworkReply::NetworkError>::of(&QNetworkReply::errorOccurred), this, &GoogleTranslator::slotError);
connect(reply, qOverload<QNetworkReply::NetworkError>(&QNetworkReply::errorOccurred), this, &GoogleTranslator::slotError);
}
void GoogleTranslator::slotError(QNetworkReply::NetworkError /*error*/)
......
......@@ -297,11 +297,11 @@ void TranslatorWidget::init()
slotFromLanguageChanged(0, true);
slotTextChanged();
readConfig();
connect(d->from, QOverload<int>::of(&QComboBox::currentIndexChanged), this, [this](int val) {
connect(d->from, qOverload<int>(&QComboBox::currentIndexChanged), this, [this](int val) {
slotFromLanguageChanged(val, false);
slotConfigChanged();
});
connect(d->to, QOverload<int>::of(&QComboBox::currentIndexChanged), this, [this]() {
connect(d->to, qOverload<int>(&QComboBox::currentIndexChanged), this, [this]() {
slotConfigChanged();
slotTranslate();
});
......
......@@ -121,7 +121,7 @@ AclEntryDialog::AclEntryDialog(QWidget *parent)
connect(button, &QPushButton::clicked, this, [this]() {
d->slotSelectAddresses();
});
connect(d->mButtonGroup, QOverload<QAbstractButton *>::of(&QButtonGroup::buttonClicked), this, [this]() {
connect(d->mButtonGroup, qOverload<QAbstractButton *>(&QButtonGroup::buttonClicked), this, [this]() {
d->slotChanged();
});
......
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