Commit 23fb3b25 authored by Glen Ditchfield's avatar Glen Ditchfield 🐛 Committed by Glen Ditchfield
Browse files

Save the agenda and month views' "icons to use" settings

BUG: 449473
parent 9ab86fd9
Pipeline #152875 passed with stage
in 1 minute and 36 seconds
......@@ -104,7 +104,6 @@ KOPrefsDialogViews::KOPrefsDialogViews(QWidget *parent, const QVariantList &args
adisplayLayout->addWidget(marcusBainsShowSeconds->checkBox());
adisplayLayout->addWidget(addWidBool(KOPrefs::instance()->selectionStartsEditorItem())->checkBox());
mAgendaIconComboBox->setCheckedIcons(KOPrefs::instance()->eventViewsPreferences()->agendaViewIcons());
adisplayLayout->addWidget(mAgendaIconComboBox);
adisplayBox->setLayout(adisplayLayout);
agendaLayout->addWidget(adisplayBox);
......@@ -136,7 +135,6 @@ KOPrefsDialogViews::KOPrefsDialogViews(QWidget *parent, const QVariantList &args
mdisplayLayout->addWidget(addWidBool(KOPrefs::instance()->showJournalsMonthViewItem())->checkBox());
mdisplayBox->setLayout(mdisplayLayout);
mMonthIconComboBox->setCheckedIcons(KOPrefs::instance()->eventViewsPreferences()->monthViewIcons());
mdisplayLayout->addWidget(mMonthIconComboBox);
monthLayout->addWidget(mdisplayBox);
......@@ -172,6 +170,12 @@ KOPrefsDialogViews::KOPrefsDialogViews(QWidget *parent, const QVariantList &args
}
void KOPrefsDialogViews::usrReadConfig()
{
mAgendaIconComboBox->setCheckedIcons(KOPrefs::instance()->eventViewsPreferences()->agendaViewIcons());
mMonthIconComboBox->setCheckedIcons(KOPrefs::instance()->eventViewsPreferences()->monthViewIcons());
}
void KOPrefsDialogViews::usrWriteConfig()
{
KOPrefs::instance()->eventViewsPreferences()->setAgendaViewIcons(mAgendaIconComboBox->checkedIcons());
KOPrefs::instance()->eventViewsPreferences()->setMonthViewIcons(mMonthIconComboBox->checkedIcons());
......
......@@ -20,6 +20,7 @@ public:
protected:
void usrReadConfig() override;
void usrWriteConfig() override;
private:
KItemIconCheckCombo *mMonthIconComboBox;
......
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