Commit 75afbd1c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port to QButtonGroup::idToggled

parent 6e91e424
Pipeline #58785 passed with stage
in 9 minutes and 58 seconds
......@@ -245,7 +245,7 @@ DirResourceImportTypeWidget::DirResourceImportTypeWidget(CalEvent::Type alarmTyp
mUi->mergeResource->addItem(resource.displayName(), QVariant(resource.id()));
}
connect(mUi->optionGroup, QOverload<QAbstractButton*, bool>::of(&QButtonGroup::buttonToggled), this, &DirResourceImportTypeWidget::importTypeSelected);
connect(mUi->optionGroup, &QButtonGroup::idToggled, this, &DirResourceImportTypeWidget::importTypeSelected);
mUi->pathRequester->setMode(KFile::File);
mUi->pathRequester->setFilter(QStringLiteral("*.ics|%1").arg(i18nc("@item:inlistbox File type selection filter", "Calendar files")));
......
......@@ -40,7 +40,7 @@ SingleFileResourceConfigDialog::SingleFileResourceConfigDialog(bool create, QWid
mUi->pathRequester->setFocus();
mUi->statusLabel->setText(QString());
connect(mUi->pathRequester, &KUrlRequester::textChanged, this, &SingleFileResourceConfigDialog::validate);
connect(mUi->alarmTypeGroup, QOverload<QAbstractButton*, bool>::of(&QButtonGroup::buttonToggled), this, &SingleFileResourceConfigDialog::validate);
connect(mUi->alarmTypeGroup, &QButtonGroup::idToggled, this, &SingleFileResourceConfigDialog::validate);
}
else
{
......
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