Commit 845a43fe authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Remove some qOverload as we remove deprecated qt5.15 signal

parent 09806745
Pipeline #82752 canceled with stage
......@@ -160,7 +160,7 @@ void SieveActionWidget::initWidget()
updateGeometry();
connect(mComboBox, qOverload<int>(&QComboBox::activated), this, &SieveActionWidget::slotActionChanged);
connect(mComboBox, &QComboBox::activated, this, &SieveActionWidget::slotActionChanged);
mAdd = new QPushButton(this);
mAdd->setIcon(QIcon::fromTheme(QStringLiteral("list-add")));
......
......@@ -35,7 +35,7 @@ QWidget *SieveConditionExists::createParamWidget(QWidget *parent) const
combo->addItem(i18n("exists"), QStringLiteral("exists"));
combo->addItem(i18n("not exists"), QStringLiteral("not exists"));
lay->addWidget(combo);
connect(combo, qOverload<int>(&QComboBox::activated), this, &SieveConditionExists::valueChanged);
connect(combo, &QComboBox::activated, this, &SieveConditionExists::valueChanged);
auto lab = new QLabel(i18n("headers:"));
lay->addWidget(lab);
......
......@@ -33,7 +33,7 @@ QWidget *SieveConditionSize::createParamWidget(QWidget *parent) const
combo->addItem(i18n("under"), QStringLiteral(":under"));
combo->addItem(i18n("over"), QStringLiteral(":over"));
lay->addWidget(combo);
connect(combo, qOverload<int>(&QComboBox::activated), this, &SieveConditionSize::valueChanged);
connect(combo, &QComboBox::activated, this, &SieveConditionSize::valueChanged);
auto sizeWidget = new SelectSizeWidget;
connect(sizeWidget, &SelectSizeWidget::valueChanged, this, &SieveConditionSize::valueChanged);
......
......@@ -35,7 +35,7 @@ void SelectBodyTypeWidget::initialize()
mBodyCombobox->addItem(i18n("raw"), QStringLiteral(":raw"));
mBodyCombobox->addItem(i18n("content"), QStringLiteral(":content"));
mBodyCombobox->addItem(i18n("text"), QStringLiteral(":text"));
connect(mBodyCombobox, qOverload<int>(&QComboBox::activated), this, &SelectBodyTypeWidget::slotBodyTypeChanged);
connect(mBodyCombobox, &QComboBox::activated, this, &SelectBodyTypeWidget::slotBodyTypeChanged);
mBodyLineEdit = new QLineEdit(this);
new KPIM::LineEditCatchReturnKey(mBodyLineEdit, this);
......
......@@ -36,7 +36,7 @@ void SelectDateWidget::initialize()
lay->setContentsMargins({});
mDateType = new QComboBox(this);
connect(mDateType, qOverload<int>(&QComboBox::activated), this, &SelectDateWidget::slotDateTypeActivated);
connect(mDateType, &QComboBox::activated, this, &SelectDateWidget::slotDateTypeActivated);
mDateType->addItem(i18n("Year"), QVariant::fromValue(KSieveUi::SelectDateWidget::Year));
mDateType->addItem(i18n("Month"), QVariant::fromValue(KSieveUi::SelectDateWidget::Month));
mDateType->addItem(i18n("Day"), QVariant::fromValue(KSieveUi::SelectDateWidget::Day));
......
......@@ -57,7 +57,7 @@ void SelectRelationalMatchType::initialize()
mType->addItem(i18n("Value"), QStringLiteral(":value"));
mType->addItem(i18n("Count"), QStringLiteral(":count"));
lay->addWidget(mType);
connect(mType, qOverload<int>(&QComboBox::activated), this, &SelectRelationalMatchType::valueChanged);
connect(mType, &QComboBox::activated, this, &SelectRelationalMatchType::valueChanged);
mMatch->addItem(i18n("Greater than"), QStringLiteral("gt"));
mMatch->addItem(i18n("Greater than or equal"), QStringLiteral("ge"));
......@@ -65,6 +65,6 @@ void SelectRelationalMatchType::initialize()
mMatch->addItem(i18n("Less than or equal"), QStringLiteral("le"));
mMatch->addItem(i18n("Equal to"), QStringLiteral("eq"));
mMatch->addItem(i18n("Not equal to"), QStringLiteral("ne"));
connect(mMatch, qOverload<int>(&QComboBox::activated), this, &SelectRelationalMatchType::valueChanged);
connect(mMatch, &QComboBox::activated, this, &SelectRelationalMatchType::valueChanged);
lay->addWidget(mMatch);
}
......@@ -118,7 +118,7 @@ void SieveConditionWidget::initWidget()
mComboBox->addItem(QLatin1String(""));
mLayout->addWidget(mComboBox, 1, 2);
connect(mComboBox, qOverload<int>(&QComboBox::activated), this, &SieveConditionWidget::slotConditionChanged);
connect(mComboBox, &QComboBox::activated, this, &SieveConditionWidget::slotConditionChanged);
mComboBox->setMaxCount(mComboBox->count());
mComboBox->setSizePolicy(QSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed));
......
......@@ -178,7 +178,7 @@ VacationEditWidget::VacationEditWidget(QWidget *parent)
mMailAction->addItem(VacationUtils::mailAction(static_cast<VacationUtils::MailAction>(i)));
}
mMailAction->setObjectName(QStringLiteral("mMailAction"));
connect(mMailAction, qOverload<int>(&QComboBox::currentIndexChanged), this, &VacationEditWidget::mailActionChanged);
connect(mMailAction, &QComboBox::currentIndexChanged, this, &VacationEditWidget::mailActionChanged);
// Add imap select folder plugin here.
mMailActionRecipient = new VacationMailActionWidget(this);
......
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