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
bb86969d
Commit
bb86969d
authored
Sep 26, 2021
by
Laurent Montel
😁
Browse files
Not necessary to use qOverload here
parent
21fce6b4
Pipeline
#82766
passed with stage
in 15 minutes and 7 seconds
Changes
7
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/kontactplugin/korganizer/kcmapptsummary.cpp
View file @
bb86969d
...
...
@@ -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
);
...
...
src/kontactplugin/korganizer/kcmtodosummary.cpp
View file @
bb86969d
...
...
@@ -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
);
...
...
src/kontactplugin/specialdates/kcmsdsummary.cpp
View file @
bb86969d
...
...
@@ -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
);
...
...
src/prefs/koprefsdialoggroupwarescheduling.cpp
View file @
bb86969d
...
...
@@ -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
);
...
...
src/prefs/koprefsdialogtime.cpp
View file @
bb86969d
...
...
@@ -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
);
...
...
src/prefs/kprefsdialog.cpp
View file @
bb86969d
...
...
@@ -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
()
...
...
src/views/multiagendaview/multiagendaview.cpp
View file @
bb86969d
...
...
@@ -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
);
...
...
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