Commit b7f8c7a3 authored by Volker Krause's avatar Volker Krause
Browse files

Port config dialog away from KCalendarSystem.

parent d529c563
...@@ -55,7 +55,6 @@ ...@@ -55,7 +55,6 @@
#include "AkonadiWidgets/ManageAccountWidget" #include "AkonadiWidgets/ManageAccountWidget"
#include <KCalendarSystem>
#include <KColorButton> #include <KColorButton>
#include <KComboBox> #include <KComboBox>
#include <QHBoxLayout> #include <QHBoxLayout>
...@@ -324,9 +323,7 @@ public: ...@@ -324,9 +323,7 @@ public:
// Respect start of week setting // Respect start of week setting
int weekStart = QLocale().firstDayOfWeek(); int weekStart = QLocale().firstDayOfWeek();
for (int i = 0; i < 7; ++i) { for (int i = 0; i < 7; ++i) {
const KCalendarSystem *calSys = KOGlobals::self()->calendarSystem(); QString weekDayName = QLocale().dayName((i + weekStart + 6) % 7 + 1, QLocale::ShortFormat);
QString weekDayName = calSys->weekDayName((i + weekStart + 6) % 7 + 1,
KCalendarSystem::ShortDayName);
int index = (i + weekStart + 6) % 7; int index = (i + weekStart + 6) % 7;
mWorkDays[ index ] = new QCheckBox(weekDayName); mWorkDays[ index ] = new QCheckBox(weekDayName);
mWorkDays[ index ]->setWhatsThis( mWorkDays[ index ]->setWhatsThis(
......
Markdown is supported
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