Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KOrganizer
Commits
86d99756
Commit
86d99756
authored
Aug 30, 2021
by
Laurent Montel
😁
Browse files
Use qOverload directly (scripted)
parent
dec54d6f
Pipeline
#77315
passed with stage
in 13 minutes and 14 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/calendarview.cpp
View file @
86d99756
...
...
@@ -216,7 +216,7 @@ CalendarView::CalendarView(QWidget *parent)
connect
(
mDateNavigatorContainer
,
&
DateNavigatorContainer
::
datesSelected
,
mDateNavigator
,
Q
Overload
<
const
KCalendarCore
::
DateList
&
,
QDate
>
::
of
(
&
DateNavigator
::
selectDates
));
q
Overload
<
const
KCalendarCore
::
DateList
&
,
QDate
>
(
&
DateNavigator
::
selectDates
));
connect
(
mViewManager
,
&
KOViewManager
::
datesSelected
,
mDateNavigator
,
[
this
](
const
KCalendarCore
::
DateList
&
dates
)
{
mDateNavigator
->
selectDates
(
dates
);
...
...
src/helper/searchcollectionhelper.cpp
View file @
86d99756
...
...
@@ -30,8 +30,8 @@ SearchCollectionHelper::SearchCollectionHelper(QObject *parent)
{
mIdentityManager
=
KIdentityManagement
::
IdentityManager
::
self
();
setupSearchCollections
();
connect
(
mIdentityManager
,
Q
Overload
<>
::
of
(
&
KIdentityManagement
::
IdentityManager
::
changed
),
this
,
&
SearchCollectionHelper
::
updateOpenInvitation
);
connect
(
mIdentityManager
,
Q
Overload
<>
::
of
(
&
KIdentityManagement
::
IdentityManager
::
changed
),
this
,
&
SearchCollectionHelper
::
updateDeclinedInvitation
);
connect
(
mIdentityManager
,
q
Overload
<>
(
&
KIdentityManagement
::
IdentityManager
::
changed
),
this
,
&
SearchCollectionHelper
::
updateOpenInvitation
);
connect
(
mIdentityManager
,
q
Overload
<>
(
&
KIdentityManagement
::
IdentityManager
::
changed
),
this
,
&
SearchCollectionHelper
::
updateDeclinedInvitation
);
}
void
SearchCollectionHelper
::
setupSearchCollections
()
...
...
src/kontactplugin/korganizer/kcmapptsummary.cpp
View file @
86d99756
...
...
@@ -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
,
Q
Overload
<
QAbstractButton
*>
::
of
(
&
QButtonGroup
::
buttonClicked
),
this
,
&
KCMApptSummary
::
modified
);
connect
(
mShowButtonGroup
,
Q
Overload
<
QAbstractButton
*>
::
of
(
&
QButtonGroup
::
buttonClicked
),
this
,
&
KCMApptSummary
::
modified
);
connect
(
mGroupwareButtonGroup
,
Q
Overload
<
QAbstractButton
*>
::
of
(
&
QButtonGroup
::
buttonClicked
),
this
,
&
KCMApptSummary
::
modified
);
connect
(
mDaysButtonGroup
,
q
Overload
<
QAbstractButton
*>
(
&
QButtonGroup
::
buttonClicked
),
this
,
&
KCMApptSummary
::
modified
);
connect
(
mShowButtonGroup
,
q
Overload
<
QAbstractButton
*>
(
&
QButtonGroup
::
buttonClicked
),
this
,
&
KCMApptSummary
::
modified
);
connect
(
mGroupwareButtonGroup
,
q
Overload
<
QAbstractButton
*>
(
&
QButtonGroup
::
buttonClicked
),
this
,
&
KCMApptSummary
::
modified
);
connect
(
mDaysButtonGroup
,
Q
Overload
<
QAbstractButton
*>
::
of
(
&
QButtonGroup
::
buttonClicked
),
this
,
&
KCMApptSummary
::
buttonClicked
);
connect
(
mDaysButtonGroup
,
q
Overload
<
QAbstractButton
*>
(
&
QButtonGroup
::
buttonClicked
),
this
,
&
KCMApptSummary
::
buttonClicked
);
connect
(
mCustomDays
,
Q
Overload
<
int
>
::
of
(
&
QSpinBox
::
valueChanged
),
this
,
&
KCMApptSummary
::
modified
);
connect
(
mCustomDays
,
Q
Overload
<
int
>
::
of
(
&
QSpinBox
::
valueChanged
),
this
,
&
KCMApptSummary
::
customDaysChanged
);
connect
(
mCustomDays
,
q
Overload
<
int
>
(
&
QSpinBox
::
valueChanged
),
this
,
&
KCMApptSummary
::
modified
);
connect
(
mCustomDays
,
q
Overload
<
int
>
(
&
QSpinBox
::
valueChanged
),
this
,
&
KCMApptSummary
::
customDaysChanged
);
KAcceleratorManager
::
manage
(
this
);
...
...
src/kontactplugin/korganizer/kcmtodosummary.cpp
View file @
86d99756
...
...
@@ -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
,
Q
Overload
<
int
>
::
of
(
&
QSpinBox
::
valueChanged
),
this
,
&
KCMTodoSummary
::
modified
);
connect
(
mCustomDays
,
Q
Overload
<
int
>
::
of
(
&
QSpinBox
::
valueChanged
),
this
,
&
KCMTodoSummary
::
customDaysChanged
);
connect
(
mCustomDays
,
q
Overload
<
int
>
(
&
QSpinBox
::
valueChanged
),
this
,
&
KCMTodoSummary
::
modified
);
connect
(
mCustomDays
,
q
Overload
<
int
>
(
&
QSpinBox
::
valueChanged
),
this
,
&
KCMTodoSummary
::
customDaysChanged
);
connect
(
mShowMineOnly
,
&
QCheckBox
::
stateChanged
,
this
,
&
KCMTodoSummary
::
modified
);
...
...
src/kontactplugin/specialdates/kcmsdsummary.cpp
View file @
86d99756
...
...
@@ -30,7 +30,7 @@ KCMSDSummary::KCMSDSummary(QWidget *parent, const QVariantList &args)
connect
(
mDateRangeButton
,
&
QRadioButton
::
clicked
,
this
,
&
KCMSDSummary
::
modified
);
connect
(
mCustomDays
,
qOverload
<
int
>
(
&
QSpinBox
::
valueChanged
),
this
,
&
KCMSDSummary
::
modified
);
connect
(
mCustomDays
,
Q
Overload
<
int
>
::
of
(
&
QSpinBox
::
valueChanged
),
this
,
&
KCMSDSummary
::
customDaysChanged
);
connect
(
mCustomDays
,
q
Overload
<
int
>
(
&
QSpinBox
::
valueChanged
),
this
,
&
KCMSDSummary
::
customDaysChanged
);
connect
(
mShowBirthdaysFromCalBox
,
&
QCheckBox
::
stateChanged
,
this
,
&
KCMSDSummary
::
modified
);
connect
(
mShowAnniversariesFromCalBox
,
&
QCheckBox
::
stateChanged
,
this
,
&
KCMSDSummary
::
modified
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment