Commit 86d99756 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use qOverload directly (scripted)

parent dec54d6f
Pipeline #77315 passed with stage
in 13 minutes and 14 seconds
...@@ -216,7 +216,7 @@ CalendarView::CalendarView(QWidget *parent) ...@@ -216,7 +216,7 @@ CalendarView::CalendarView(QWidget *parent)
connect(mDateNavigatorContainer, connect(mDateNavigatorContainer,
&DateNavigatorContainer::datesSelected, &DateNavigatorContainer::datesSelected,
mDateNavigator, mDateNavigator,
QOverload<const KCalendarCore::DateList &, QDate>::of(&DateNavigator::selectDates)); qOverload<const KCalendarCore::DateList &, QDate>(&DateNavigator::selectDates));
connect(mViewManager, &KOViewManager::datesSelected, mDateNavigator, [this](const KCalendarCore::DateList &dates) { connect(mViewManager, &KOViewManager::datesSelected, mDateNavigator, [this](const KCalendarCore::DateList &dates) {
mDateNavigator->selectDates(dates); mDateNavigator->selectDates(dates);
......
...@@ -30,8 +30,8 @@ SearchCollectionHelper::SearchCollectionHelper(QObject *parent) ...@@ -30,8 +30,8 @@ SearchCollectionHelper::SearchCollectionHelper(QObject *parent)
{ {
mIdentityManager = KIdentityManagement::IdentityManager::self(); mIdentityManager = KIdentityManagement::IdentityManager::self();
setupSearchCollections(); setupSearchCollections();
connect(mIdentityManager, QOverload<>::of(&KIdentityManagement::IdentityManager::changed), this, &SearchCollectionHelper::updateOpenInvitation); connect(mIdentityManager, qOverload<>(&KIdentityManagement::IdentityManager::changed), this, &SearchCollectionHelper::updateOpenInvitation);
connect(mIdentityManager, QOverload<>::of(&KIdentityManagement::IdentityManager::changed), this, &SearchCollectionHelper::updateDeclinedInvitation); connect(mIdentityManager, qOverload<>(&KIdentityManagement::IdentityManager::changed), this, &SearchCollectionHelper::updateDeclinedInvitation);
} }
void SearchCollectionHelper::setupSearchCollections() void SearchCollectionHelper::setupSearchCollections()
......
...@@ -41,14 +41,14 @@ KCMApptSummary::KCMApptSummary(QWidget *parent, const QVariantList &args) ...@@ -41,14 +41,14 @@ KCMApptSummary::KCMApptSummary(QWidget *parent, const QVariantList &args)
customDaysChanged(7); customDaysChanged(7);
// Remove QOverload<QAbstractButton *> when we switch on qt6. For the moment it avoids to add an #ifdef // Remove QOverload<QAbstractButton *> when we switch on qt6. For the moment it avoids to add an #ifdef
connect(mDaysButtonGroup, QOverload<QAbstractButton *>::of(&QButtonGroup::buttonClicked), this, &KCMApptSummary::modified); connect(mDaysButtonGroup, qOverload<QAbstractButton *>(&QButtonGroup::buttonClicked), this, &KCMApptSummary::modified);
connect(mShowButtonGroup, QOverload<QAbstractButton *>::of(&QButtonGroup::buttonClicked), this, &KCMApptSummary::modified); connect(mShowButtonGroup, qOverload<QAbstractButton *>(&QButtonGroup::buttonClicked), this, &KCMApptSummary::modified);
connect(mGroupwareButtonGroup, QOverload<QAbstractButton *>::of(&QButtonGroup::buttonClicked), this, &KCMApptSummary::modified); connect(mGroupwareButtonGroup, qOverload<QAbstractButton *>(&QButtonGroup::buttonClicked), this, &KCMApptSummary::modified);
connect(mDaysButtonGroup, QOverload<QAbstractButton *>::of(&QButtonGroup::buttonClicked), this, &KCMApptSummary::buttonClicked); connect(mDaysButtonGroup, qOverload<QAbstractButton *>(&QButtonGroup::buttonClicked), this, &KCMApptSummary::buttonClicked);
connect(mCustomDays, QOverload<int>::of(&QSpinBox::valueChanged), this, &KCMApptSummary::modified); connect(mCustomDays, qOverload<int>(&QSpinBox::valueChanged), this, &KCMApptSummary::modified);
connect(mCustomDays, QOverload<int>::of(&QSpinBox::valueChanged), this, &KCMApptSummary::customDaysChanged); connect(mCustomDays, qOverload<int>(&QSpinBox::valueChanged), this, &KCMApptSummary::customDaysChanged);
KAcceleratorManager::manage(this); KAcceleratorManager::manage(this);
......
...@@ -35,8 +35,8 @@ KCMTodoSummary::KCMTodoSummary(QWidget *parent, const QVariantList &args) ...@@ -35,8 +35,8 @@ KCMTodoSummary::KCMTodoSummary(QWidget *parent, const QVariantList &args)
connect(mHideInProgressBox, &QCheckBox::stateChanged, this, &KCMTodoSummary::modified); connect(mHideInProgressBox, &QCheckBox::stateChanged, this, &KCMTodoSummary::modified);
connect(mHideOverdueBox, &QCheckBox::stateChanged, this, &KCMTodoSummary::modified); connect(mHideOverdueBox, &QCheckBox::stateChanged, this, &KCMTodoSummary::modified);
connect(mCustomDays, QOverload<int>::of(&QSpinBox::valueChanged), this, &KCMTodoSummary::modified); connect(mCustomDays, qOverload<int>(&QSpinBox::valueChanged), this, &KCMTodoSummary::modified);
connect(mCustomDays, QOverload<int>::of(&QSpinBox::valueChanged), this, &KCMTodoSummary::customDaysChanged); connect(mCustomDays, qOverload<int>(&QSpinBox::valueChanged), this, &KCMTodoSummary::customDaysChanged);
connect(mShowMineOnly, &QCheckBox::stateChanged, this, &KCMTodoSummary::modified); connect(mShowMineOnly, &QCheckBox::stateChanged, this, &KCMTodoSummary::modified);
......
...@@ -30,7 +30,7 @@ KCMSDSummary::KCMSDSummary(QWidget *parent, const QVariantList &args) ...@@ -30,7 +30,7 @@ KCMSDSummary::KCMSDSummary(QWidget *parent, const QVariantList &args)
connect(mDateRangeButton, &QRadioButton::clicked, this, &KCMSDSummary::modified); connect(mDateRangeButton, &QRadioButton::clicked, this, &KCMSDSummary::modified);
connect(mCustomDays, qOverload<int>(&QSpinBox::valueChanged), this, &KCMSDSummary::modified); connect(mCustomDays, qOverload<int>(&QSpinBox::valueChanged), this, &KCMSDSummary::modified);
connect(mCustomDays, QOverload<int>::of(&QSpinBox::valueChanged), this, &KCMSDSummary::customDaysChanged); connect(mCustomDays, qOverload<int>(&QSpinBox::valueChanged), this, &KCMSDSummary::customDaysChanged);
connect(mShowBirthdaysFromCalBox, &QCheckBox::stateChanged, this, &KCMSDSummary::modified); connect(mShowBirthdaysFromCalBox, &QCheckBox::stateChanged, this, &KCMSDSummary::modified);
connect(mShowAnniversariesFromCalBox, &QCheckBox::stateChanged, this, &KCMSDSummary::modified); connect(mShowAnniversariesFromCalBox, &QCheckBox::stateChanged, this, &KCMSDSummary::modified);
......
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