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
b7f8c7a3
Commit
b7f8c7a3
authored
Apr 03, 2016
by
Volker Krause
Browse files
Port config dialog away from KCalendarSystem.
parent
d529c563
Changes
1
Hide whitespace changes
Inline
Side-by-side
prefs/koprefsdialog.cpp
View file @
b7f8c7a3
...
...
@@ -55,7 +55,6 @@
#include
"AkonadiWidgets/ManageAccountWidget"
#include
<KCalendarSystem>
#include
<KColorButton>
#include
<KComboBox>
#include
<QHBoxLayout>
...
...
@@ -324,9 +323,7 @@ public:
// Respect start of week setting
int
weekStart
=
QLocale
().
firstDayOfWeek
();
for
(
int
i
=
0
;
i
<
7
;
++
i
)
{
const
KCalendarSystem
*
calSys
=
KOGlobals
::
self
()
->
calendarSystem
();
QString
weekDayName
=
calSys
->
weekDayName
((
i
+
weekStart
+
6
)
%
7
+
1
,
KCalendarSystem
::
ShortDayName
);
QString
weekDayName
=
QLocale
().
dayName
((
i
+
weekStart
+
6
)
%
7
+
1
,
QLocale
::
ShortFormat
);
int
index
=
(
i
+
weekStart
+
6
)
%
7
;
mWorkDays
[
index
]
=
new
QCheckBox
(
weekDayName
);
mWorkDays
[
index
]
->
setWhatsThis
(
...
...
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