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
681d6fb5
Commit
681d6fb5
authored
Jul 15, 2020
by
Laurent Montel
😁
Browse files
Use slotConfigChanged
parent
5c9db30b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/prefs/koprefsdialog.cpp
View file @
681d6fb5
...
...
@@ -257,6 +257,7 @@ public:
mDayBegin
=
new
KTimeComboBox
(
this
);
datetimeLayout
->
addWidget
(
new
QLabel
(
KOPrefs
::
instance
()
->
dayBeginsItem
()
->
label
(),
this
),
1
,
0
);
datetimeLayout
->
addWidget
(
mDayBegin
,
1
,
1
);
connect
(
mDayBegin
,
&
KTimeComboBox
::
currentIndexChanged
,
this
,
&
KOPrefsDialogTime
::
slotConfigChanged
);
QGroupBox
*
holidaysGroupBox
=
new
QGroupBox
(
i18nc
(
"@title:group"
,
"Holidays"
),
regionalPage
);
...
...
@@ -275,6 +276,7 @@ public:
holidayLabel
->
setWhatsThis
(
KOPrefs
::
instance
()
->
holidaysItem
()
->
whatsThis
());
mHolidayCheckCombo
=
new
KPIM
::
KCheckComboBox
(
holidayRegBox
);
connect
(
mHolidayCheckCombo
,
&
KPIM
::
KCheckComboBox
::
activated
,
this
,
&
KOPrefsDialogTime
::
slotConfigChanged
);
holidayRegBoxHBoxLayout
->
addWidget
(
mHolidayCheckCombo
);
connect
(
mHolidayCheckCombo
,
&
KPIM
::
KCheckComboBox
::
checkedItemsChanged
,
this
,
&
KOPrefsDialogTime
::
slotConfigChanged
);
...
...
@@ -345,6 +347,7 @@ public:
}
mFirstDayCombo
=
new
QComboBox
(
workingHoursGroupBox
);
connect
(
mFirstDayCombo
,
&
QComboBox
::
activated
,
this
,
&
KOPrefsDialogTime
::
slotConfigChanged
);
QHBoxLayout
*
firstDayLayout
=
new
QHBoxLayout
;
workingHoursLayout
->
addLayout
(
firstDayLayout
);
...
...
@@ -362,6 +365,7 @@ public:
firstDayLayout
->
addWidget
(
mFirstDayCombo
);
mWorkStart
=
new
KTimeComboBox
(
this
);
connect
(
mWorkStart
,
&
KTimeComboBox
::
activated
,
this
,
&
KOPrefsDialogTime
::
slotConfigChanged
);
QHBoxLayout
*
workStartLayout
=
new
QHBoxLayout
;
workingHoursLayout
->
addLayout
(
workStartLayout
);
...
...
@@ -370,6 +374,7 @@ public:
workStartLayout
->
addWidget
(
mWorkStart
);
mWorkEnd
=
new
KTimeComboBox
(
this
);
connect
(
mWorkEnd
,
&
KTimeComboBox
::
activated
,
this
,
&
KOPrefsDialogTime
::
slotConfigChanged
);
QHBoxLayout
*
workEndLayout
=
new
QHBoxLayout
;
workingHoursLayout
->
addLayout
(
workEndLayout
);
...
...
@@ -394,6 +399,7 @@ public:
QGridLayout
*
timesLayout
=
new
QGridLayout
(
timesGroupBox
);
mDefaultTime
=
new
KTimeComboBox
(
this
);
connect
(
mDefaultTime
,
&
KTimeComboBox
::
activated
,
this
,
&
KOPrefsDialogTime
::
slotConfigChanged
);
timesLayout
->
addWidget
(
new
QLabel
(
CalendarSupport
::
KCalPrefs
::
instance
()
->
startTimeItem
()
->
label
(),
this
),
0
,
0
);
timesLayout
->
addWidget
(
mDefaultTime
,
0
,
1
);
...
...
@@ -401,6 +407,7 @@ public:
mDefaultDuration
->
setDisplayFormat
(
QStringLiteral
(
"hh:mm"
));
mDefaultDuration
->
setMinimumTime
(
QTime
(
0
,
1
));
// [1 min]
mDefaultDuration
->
setMaximumTime
(
QTime
(
24
,
0
));
// [24 hr]
connect
(
mDefaultDuration
,
&
QTimeEdit
::
dateTimeChanged
,
this
,
&
KOPrefsDialogTime
::
slotConfigChanged
);
// KPIM::KPrefsWidDuration *defaultDuration
// = addWidDuration(CalendarSupport::KCalPrefs::instance()->defaultDurationItem(),
// QStringLiteral("hh:mm"), defaultPage);
...
...
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