Commit 10e79a06 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Not necessary to use qOverload here

parent 488ada49
Pipeline #82936 passed with stage
in 12 minutes and 50 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>(&PimCommon::AutoCorrectionLanguage::activated), this, &AutoCorrectionWidget::changeLanguage);
connect(d->ui->autocorrectionLanguage, &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>(&QNetworkReply::errorOccurred), this, &GoogleTranslator::slotError);
connect(reply, &QNetworkReply::errorOccurred, this, &GoogleTranslator::slotError);
}
void GoogleTranslator::slotError(QNetworkReply::NetworkError /*error*/)
......
......@@ -562,7 +562,7 @@ LdapSearchDialog::LdapSearchDialog(QWidget *parent)
d->mResultView->verticalHeader()->hide();
d->mResultView->setSortingEnabled(true);
d->mResultView->horizontalHeader()->setSortIndicatorShown(true);
connect(d->mResultView, qOverload<const QModelIndex &>(&QTableView::clicked), this, [this]() {
connect(d->mResultView, &QTableView::clicked, this, [this]() {
d->slotSelectionChanged();
});
topLayout->addWidget(d->mResultView);
......
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