Commit 97e58ab1 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix load/save settings

parent c347b50d
Pipeline #27150 passed with stage
in 12 minutes and 16 seconds
......@@ -479,7 +479,8 @@ protected:
void usrReadConfig() override
{
//TODO mFirstDayCombo
//TODO mDefaultEventRemindersCheckBox mDefaultTodoRemindersCheckBox
mDefaultEventRemindersCheckBox->setChecked(CalendarSupport::KCalPrefs::instance()->defaultEventReminders());
mDefaultTodoRemindersCheckBox->setChecked(CalendarSupport::KCalPrefs::instance()->defaultTodoReminders());
mExcludeHolidaysCheckbox->setChecked(KOPrefs::instance()->excludeHolidays());
mUrlRequester->setText(CalendarSupport::KCalPrefs::instance()->audioFilePath());
mReminderTimeSpin->setValue(CalendarSupport::KCalPrefs::instance()->mReminderTime);
......@@ -493,8 +494,10 @@ protected:
void usrWriteConfig() override
{
//TODO mFirstDayCombo
//TODO mDefaultEventRemindersCheckBox mDefaultTodoRemindersCheckBox
//TODO mUrlRequester;
CalendarSupport::KCalPrefs::instance()->setDefaultEventReminders(mDefaultEventRemindersCheckBox->isChecked());
CalendarSupport::KCalPrefs::instance()->setDefaultTodoReminders(mDefaultTodoRemindersCheckBox->isChecked());
KOPrefs::instance()->setExcludeHolidays(mExcludeHolidaysCheckbox->isChecked());
QStringList HolidayRegions;
const auto checkedItems = mHolidayCheckCombo->checkedItems();
......
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