Skip to content
GitLab
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
23fb3b25
Commit
23fb3b25
authored
Mar 18, 2022
by
Glen Ditchfield
🐛
Committed by
Glen Ditchfield
Mar 19, 2022
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
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/prefs/koprefsdialogviews.cpp
View file @
23fb3b25
...
...
@@ -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
());
...
...
src/prefs/koprefsdialogviews.h
View file @
23fb3b25
...
...
@@ -20,6 +20,7 @@ public:
protected:
void
usrReadConfig
()
override
;
void
usrWriteConfig
()
override
;
private:
KItemIconCheckCombo
*
mMonthIconComboBox
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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