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

Not necessary to use qOverload here

parent 21fce6b4
Pipeline #82766 passed with stage
in 15 minutes and 7 seconds
......@@ -41,14 +41,14 @@ KCMApptSummary::KCMApptSummary(QWidget *parent, const QVariantList &args)
customDaysChanged(7);
// Remove QOverload<QAbstractButton *> when we switch on qt6. For the moment it avoids to add an #ifdef
connect(mDaysButtonGroup, qOverload<QAbstractButton *>(&QButtonGroup::buttonClicked), this, &KCMApptSummary::modified);
connect(mShowButtonGroup, qOverload<QAbstractButton *>(&QButtonGroup::buttonClicked), this, &KCMApptSummary::modified);
connect(mGroupwareButtonGroup, qOverload<QAbstractButton *>(&QButtonGroup::buttonClicked), this, &KCMApptSummary::modified);
connect(mDaysButtonGroup, &QButtonGroup::buttonClicked, this, &KCMApptSummary::modified);
connect(mShowButtonGroup, &QButtonGroup::buttonClicked, this, &KCMApptSummary::modified);
connect(mGroupwareButtonGroup, &QButtonGroup::buttonClicked, this, &KCMApptSummary::modified);
connect(mDaysButtonGroup, qOverload<QAbstractButton *>(&QButtonGroup::buttonClicked), this, &KCMApptSummary::buttonClicked);
connect(mDaysButtonGroup, &QButtonGroup::buttonClicked, this, &KCMApptSummary::buttonClicked);
connect(mCustomDays, qOverload<int>(&QSpinBox::valueChanged), this, &KCMApptSummary::modified);
connect(mCustomDays, qOverload<int>(&QSpinBox::valueChanged), this, &KCMApptSummary::customDaysChanged);
connect(mCustomDays, &QSpinBox::valueChanged, this, &KCMApptSummary::modified);
connect(mCustomDays, &QSpinBox::valueChanged, this, &KCMApptSummary::customDaysChanged);
KAcceleratorManager::manage(this);
......
......@@ -35,8 +35,8 @@ KCMTodoSummary::KCMTodoSummary(QWidget *parent, const QVariantList &args)
connect(mHideInProgressBox, &QCheckBox::stateChanged, this, &KCMTodoSummary::modified);
connect(mHideOverdueBox, &QCheckBox::stateChanged, this, &KCMTodoSummary::modified);
connect(mCustomDays, qOverload<int>(&QSpinBox::valueChanged), this, &KCMTodoSummary::modified);
connect(mCustomDays, qOverload<int>(&QSpinBox::valueChanged), this, &KCMTodoSummary::customDaysChanged);
connect(mCustomDays, &QSpinBox::valueChanged, this, &KCMTodoSummary::modified);
connect(mCustomDays, &QSpinBox::valueChanged, this, &KCMTodoSummary::customDaysChanged);
connect(mShowMineOnly, &QCheckBox::stateChanged, this, &KCMTodoSummary::modified);
......
......@@ -29,8 +29,8 @@ KCMSDSummary::KCMSDSummary(QWidget *parent, const QVariantList &args)
connect(mDateMonthButton, &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::customDaysChanged);
connect(mCustomDays, &QSpinBox::valueChanged, this, &KCMSDSummary::modified);
connect(mCustomDays, &QSpinBox::valueChanged, this, &KCMSDSummary::customDaysChanged);
connect(mShowBirthdaysFromCalBox, &QCheckBox::stateChanged, this, &KCMSDSummary::modified);
connect(mShowAnniversariesFromCalBox, &QCheckBox::stateChanged, this, &KCMSDSummary::modified);
......
......@@ -30,7 +30,7 @@ KOPrefsDialogGroupwareScheduling::KOPrefsDialogGroupwareScheduling(QWidget *pare
mGroupwarePage->groupwareTab->setTabIcon(0, QIcon::fromTheme(QStringLiteral("go-up")));
mGroupwarePage->groupwareTab->setTabIcon(1, QIcon::fromTheme(QStringLiteral("go-down")));
connect(mGroupwarePage->publishDays, qOverload<int>(&QSpinBox::valueChanged), this, &KOPrefsDialogGroupwareScheduling::slotWidChanged);
connect(mGroupwarePage->publishDays, &QSpinBox::valueChanged, this, &KOPrefsDialogGroupwareScheduling::slotWidChanged);
connect(mGroupwarePage->publishUrl, &QLineEdit::textChanged, this, &KOPrefsDialogGroupwareScheduling::slotWidChanged);
connect(mGroupwarePage->publishUser, &QLineEdit::textChanged, this, &KOPrefsDialogGroupwareScheduling::slotWidChanged);
connect(mGroupwarePage->publishPassword, &QLineEdit::textChanged, this, &KOPrefsDialogGroupwareScheduling::slotWidChanged);
......@@ -40,7 +40,7 @@ KOPrefsDialogGroupwareScheduling::KOPrefsDialogGroupwareScheduling(QWidget *pare
connect(mGroupwarePage->retrievePassword, &QLineEdit::textChanged, this, &KOPrefsDialogGroupwareScheduling::slotWidChanged);
connect(mGroupwarePage->retrieveSavePassword, &QCheckBox::toggled, this, &KOPrefsDialogGroupwareScheduling::slotWidChanged);
connect(mGroupwarePage->retrieveUrl, &QLineEdit::textChanged, this, &KOPrefsDialogGroupwareScheduling::slotWidChanged);
connect(mGroupwarePage->publishDelay, qOverload<int>(&QSpinBox::valueChanged), this, &KOPrefsDialogGroupwareScheduling::slotWidChanged);
connect(mGroupwarePage->publishDelay, &QSpinBox::valueChanged, this, &KOPrefsDialogGroupwareScheduling::slotWidChanged);
connect(mGroupwarePage->fullDomainRetrieval, &QCheckBox::toggled, this, &KOPrefsDialogGroupwareScheduling::slotWidChanged);
connect(mGroupwarePage->publishEnable, &QCheckBox::toggled, this, &KOPrefsDialogGroupwareScheduling::slotWidChanged);
......
......@@ -195,7 +195,7 @@ KOPrefsDialogTime::KOPrefsDialogTime(QWidget *parent, const QVariantList &args)
mReminderTimeSpin = new QSpinBox(defaultPage);
mReminderTimeSpin->setWhatsThis(CalendarSupport::KCalPrefs::instance()->reminderTimeItem()->whatsThis());
mReminderTimeSpin->setToolTip(CalendarSupport::KCalPrefs::instance()->reminderTimeItem()->toolTip());
connect(mReminderTimeSpin, qOverload<int>(&QSpinBox::valueChanged), this, &KOPrefsDialogTime::slotWidChanged);
connect(mReminderTimeSpin, &QSpinBox::valueChanged, this, &KOPrefsDialogTime::slotWidChanged);
remindersLayout->addWidget(mReminderTimeSpin, 0, 1);
mReminderUnitsCombo = new KComboBox(defaultPage);
......
......@@ -130,7 +130,7 @@ KPrefsWidInt::KPrefsWidInt(KConfigSkeleton::ItemInt *item, QWidget *parent)
if (!mItem->maxValue().isNull()) {
mSpin->setMaximum(mItem->maxValue().toInt());
}
connect(mSpin, qOverload<int>(&QSpinBox::valueChanged), this, &KPrefsWidInt::changed);
connect(mSpin, &QSpinBox::valueChanged, this, &KPrefsWidInt::changed);
mLabel->setBuddy(mSpin);
QString toolTip = mItem->toolTip();
if (!toolTip.isEmpty()) {
......@@ -415,7 +415,7 @@ KPrefsWidRadios::KPrefsWidRadios(KConfigSkeleton::ItemEnum *item, QWidget *paren
mBox = new QGroupBox(mItem->label(), parent);
new QVBoxLayout(mBox);
mGroup = new QButtonGroup(parent);
connect(mGroup, qOverload<QAbstractButton *>(&QButtonGroup::buttonClicked), this, &KPrefsWidRadios::changed);
connect(mGroup, &QButtonGroup::buttonClicked, this, &KPrefsWidRadios::changed);
}
KPrefsWidRadios::~KPrefsWidRadios()
......
......@@ -306,7 +306,7 @@ MultiAgendaViewConfigDialog::MultiAgendaViewConfigDialog(QAbstractItemModel *bas
d->ui.columnList->setModel(&d->listModel);
connect(d->ui.columnList->selectionModel(), &QItemSelectionModel::currentChanged, this, &MultiAgendaViewConfigDialog::currentChanged);
connect(d->ui.useCustomRB, &QAbstractButton::toggled, this, &MultiAgendaViewConfigDialog::useCustomToggled);
connect(d->ui.columnNumberSB, qOverload<int>(&QSpinBox::valueChanged), this, &MultiAgendaViewConfigDialog::numberOfColumnsChanged);
connect(d->ui.columnNumberSB, &QSpinBox::valueChanged, this, &MultiAgendaViewConfigDialog::numberOfColumnsChanged);
connect(d->ui.titleLE, &QLineEdit::textEdited, this, &MultiAgendaViewConfigDialog::titleEdited);
d->setUpColumns(numberOfColumns());
useCustomToggled(false);
......
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