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

Not necessary to use qoverload here

parent d0036182
Pipeline #82937 passed with stage
in 33 minutes and 20 seconds
......@@ -70,10 +70,10 @@ CollectionExpiryWidget::CollectionExpiryWidget(QWidget *parent)
auto formLayout = new QFormLayout(this);
formLayout->setContentsMargins({});
connect(mExpireReadMailSB, qOverload<int>(&KPluralHandlingSpinBox::valueChanged), this, &CollectionExpiryWidget::slotChanged);
connect(mExpireReadMailSB, &KPluralHandlingSpinBox::valueChanged, this, &CollectionExpiryWidget::slotChanged);
formLayout->addRow(i18n("Expire read messages after:"), mExpireReadMailSB);
connect(mExpireUnreadMailSB, qOverload<int>(&KPluralHandlingSpinBox::valueChanged), this, &CollectionExpiryWidget::slotChanged);
connect(mExpireUnreadMailSB, &KPluralHandlingSpinBox::valueChanged, this, &CollectionExpiryWidget::slotChanged);
formLayout->addRow(i18n("Expire unread messages after:"), mExpireUnreadMailSB);
connect(mExpireMailWithInvalidDateCB, &QCheckBox::toggled, this, &CollectionExpiryWidget::slotChanged);
......
......@@ -19,7 +19,7 @@ SelectThunderbirdFilterFilesWidget::SelectThunderbirdFilterFilesWidget(const QSt
{
ui->setupUi(this);
connect(ui->buttonGroup, &QButtonGroup::buttonClicked, this, &SelectThunderbirdFilterFilesWidget::slotButtonClicked);
connect(ui->profiles, qOverload<int>(&KComboBox::currentIndexChanged), this, &SelectThunderbirdFilterFilesWidget::slotProfileChanged);
connect(ui->profiles, &KComboBox::currentIndexChanged, this, &SelectThunderbirdFilterFilesWidget::slotProfileChanged);
ui->listFiles->setSelectionMode(QAbstractItemView::MultiSelection);
QString defaultProfile;
......
......@@ -85,7 +85,7 @@ QWidget *FilterActionAddHeader::createParamWidget(QWidget *parent) const
layout->addWidget(lineEdit, 1);
setParamWidgetValue(widget);
connect(comboBox, qOverload<int>(&KComboBox::currentIndexChanged), this, &FilterActionAddHeader::filterActionModified);
connect(comboBox, &KComboBox::currentIndexChanged, this, &FilterActionAddHeader::filterActionModified);
connect(comboBox->lineEdit(), &QLineEdit::textChanged, this, &FilterAction::filterActionModified);
connect(lineEdit, &QLineEdit::textChanged, this, &FilterActionAddHeader::filterActionModified);
......
......@@ -132,8 +132,8 @@ QWidget *FilterActionAddToAddressBook::createParamWidget(QWidget *parent) const
i18n("This defines the preferred address book.\n"
"If it is not accessible, the filter will fallback to the default address book."));
layout->addWidget(collectionComboBox, 1, 2);
connect(headerCombo, qOverload<int>(&KComboBox::currentIndexChanged), this, &FilterActionAddToAddressBook::filterActionModified);
connect(collectionComboBox, qOverload<int>(&Akonadi::CollectionComboBox::activated), this, &FilterActionAddToAddressBook::filterActionModified);
connect(headerCombo, &KComboBox::currentIndexChanged, this, &FilterActionAddToAddressBook::filterActionModified);
connect(collectionComboBox, &Akonadi::CollectionComboBox::activated, this, &FilterActionAddToAddressBook::filterActionModified);
connect(categoryEdit, &Akonadi::TagWidget::selectionChanged, this, &FilterActionAddToAddressBook::filterActionModified);
setParamWidgetValue(widget);
......@@ -202,10 +202,7 @@ void FilterActionAddToAddressBook::applyParamWidgetValue(QWidget *paramWidget)
// we use the previously 'stored' value from the 'collectionId' property
if (collection.isValid()) {
mCollectionId = collection.id();
connect(collectionComboBox,
qOverload<int>(&Akonadi::CollectionComboBox::currentIndexChanged),
this,
&FilterActionAddToAddressBook::filterActionModified);
connect(collectionComboBox, &Akonadi::CollectionComboBox::currentIndexChanged, this, &FilterActionAddToAddressBook::filterActionModified);
} else {
const QVariant value = collectionComboBox->property("collectionId");
if (value.isValid()) {
......
......@@ -110,7 +110,7 @@ QWidget *FilterActionForward::createParamWidget(QWidget *parent) const
templateCombo->setEnabled(templateCombo->count() > 1);
templateCombo->setToolTip(i18n("The template used when forwarding"));
templateCombo->setWhatsThis(i18n("Set the forwarding template that will be used with this filter."));
connect(templateCombo, qOverload<int>(&KComboBox::currentIndexChanged), this, &FilterActionForward::filterActionModified);
connect(templateCombo, &KComboBox::currentIndexChanged, this, &FilterActionForward::filterActionModified);
connect(addressRequester, &Akonadi::EmailAddressRequester::textChanged, this, &FilterActionForward::filterActionModified);
return addressAndTemplate;
......
......@@ -34,7 +34,7 @@ QWidget *FilterActionRemoveHeader::createParamWidget(QWidget *parent) const
comboBox->setMinimumWidth(50);
comboBox->setInsertPolicy(QComboBox::InsertAtBottom);
setParamWidgetValue(comboBox);
connect(comboBox, qOverload<int>(&KComboBox::currentIndexChanged), this, &FilterActionRemoveHeader::filterActionModified);
connect(comboBox, &KComboBox::currentIndexChanged, this, &FilterActionRemoveHeader::filterActionModified);
connect(comboBox->lineEdit(), &QLineEdit::textChanged, this, &FilterAction::filterActionModified);
return comboBox;
......
......@@ -130,7 +130,7 @@ QWidget *FilterActionRewriteHeader::createParamWidget(QWidget *parent) const
layout->addWidget(lineEdit, 1);
setParamWidgetValue(widget);
connect(comboBox, qOverload<int>(&KComboBox::currentIndexChanged), this, &FilterActionRewriteHeader::filterActionModified);
connect(comboBox, &KComboBox::currentIndexChanged, this, &FilterActionRewriteHeader::filterActionModified);
connect(comboBox->lineEdit(), &QLineEdit::textChanged, this, &FilterAction::filterActionModified);
connect(regExpLineEdit, &KLineEdit::textChanged, this, &FilterActionRewriteHeader::filterActionModified);
connect(lineEdit, &KLineEdit::textChanged, this, &FilterActionRewriteHeader::filterActionModified);
......
......@@ -28,7 +28,7 @@ QWidget *FilterActionSetTransport::createParamWidget(QWidget *parent) const
auto transportCombobox = new MailTransport::TransportComboBox(parent);
transportCombobox->setObjectName(QStringLiteral("transportcombobox"));
setParamWidgetValue(transportCombobox);
connect(transportCombobox, qOverload<int>(&MailTransport::TransportComboBox::currentIndexChanged), this, &FilterActionSetTransport::filterActionModified);
connect(transportCombobox, &MailTransport::TransportComboBox::currentIndexChanged, this, &FilterActionSetTransport::filterActionModified);
return transportCombobox;
}
......
......@@ -56,7 +56,7 @@ FilterImporterExporterGui::FilterImporterExporterGui(QWidget *parent)
act = new QAction(QStringLiteral("GMail filters"), this);
act->setData(QVariant::fromValue(MailCommon::FilterImporterExporter::GmailFilter));
menuFilter->addAction(act);
connect(menuFilter, qOverload<QAction *>(&QMenu::triggered), this, &FilterImporterExporterGui::slotImportFilter);
connect(menuFilter, &QMenu::triggered, this, &FilterImporterExporterGui::slotImportFilter);
mTextEdit = new QTextEdit;
mTextEdit->setReadOnly(true);
......
......@@ -109,10 +109,7 @@ FolderSelectionDialog::FolderSelectionDialog(QWidget *parent, SelectionFolderOpt
connect(d->folderTreeWidget->selectionModel(), &QItemSelectionModel::selectionChanged, this, &FolderSelectionDialog::slotSelectionChanged);
connect(d->folderTreeWidget->folderTreeWidgetProxyModel(), &QAbstractItemModel::rowsInserted, this, &FolderSelectionDialog::rowsInserted);
connect(d->folderTreeWidget->folderTreeView(),
qOverload<const QModelIndex &>(&QAbstractItemView::doubleClicked),
this,
&FolderSelectionDialog::slotDoubleClick);
connect(d->folderTreeWidget->folderTreeView(), &QAbstractItemView::doubleClicked, this, &FolderSelectionDialog::slotDoubleClick);
d->mUseGlobalSettings = !(options & NotUseGlobalSettings);
readConfig();
......
Supports Markdown
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