Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
KOrganizer
Commits
9515b088
Commit
9515b088
authored
Jul 15, 2020
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Continue to port it
parent
681d6fb5
Pipeline
#27275
failed with stage
in 8 minutes and 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
10 deletions
+28
-10
src/prefs/koprefsdialog.cpp
src/prefs/koprefsdialog.cpp
+28
-10
No files found.
src/prefs/koprefsdialog.cpp
View file @
9515b088
...
...
@@ -656,10 +656,11 @@ public:
nextDaysLayout
->
addWidget
(
nextDays
->
spinBox
());
nextDaysLayout
->
addStretch
(
1
);
gdisplayLayout
->
addWidget
(
addWidBool
(
KOPrefs
::
instance
()
->
enableToolTipsItem
())
->
checkBox
());
gdisplayLayout
->
addWidget
(
addWidBool
(
KOPrefs
::
instance
()
->
todosUseCategoryColorsItem
())
->
checkBox
());
mEnableToolTipsCheckBox
=
new
QCheckBox
(
KOPrefs
::
instance
()
->
enableToolTipsItem
()
->
label
(),
this
);
mTodosUseCategoryColorsCheckBox
=
new
QCheckBox
(
KOPrefs
::
instance
()
->
todosUseCategoryColorsItem
()
->
label
(),
this
);
gdisplayLayout
->
addWidget
(
mEnableToolTipsCheckBox
);
gdisplayLayout
->
addWidget
(
mTodosUseCategoryColorsCheckBox
);
gdisplayBox
->
setLayout
(
gdisplayLayout
);
generalLayout
->
addWidget
(
gdisplayBox
);
...
...
@@ -784,16 +785,16 @@ public:
// GroupBox: Views->Todo View->Display Options
QVBoxLayout
*
tdisplayLayout
=
new
QVBoxLayout
;
QGroupBox
*
tdisplayBox
=
new
QGroupBox
(
i18nc
(
"@title:group"
,
"Display Options"
));
tdisplayLayout
->
addWidget
(
addWidBool
(
KOPrefs
::
instance
()
->
s
ortCompletedTodosSeparately
Item
())
->
c
heckBox
()
);
mSortCompletedTodosSeparatelyCheckBox
=
new
QCheckBox
(
KOPrefs
::
instance
()
->
sortCompletedTodosSeparatelyItem
()
->
label
(),
this
);
tdisplayLayout
->
addWidget
(
mS
ortCompletedTodosSeparately
C
heckBox
);
tdisplayBox
->
setLayout
(
tdisplayLayout
);
todoLayout
->
addWidget
(
tdisplayBox
);
// GroupBox: Views->Todo View->Other
QVBoxLayout
*
otherLayout
=
new
QVBoxLayout
;
QGroupBox
*
otherBox
=
new
QGroupBox
(
i18nc
(
"@title:group"
,
"Other Options"
));
otherLayout
->
addWidget
(
addWidBool
(
KOPrefs
::
instance
()
->
r
ecordTodosInJournals
Item
())
->
c
heckBox
()
);
mRecordTodosInJournalsCheckBox
=
new
QCheckBox
(
KOPrefs
::
instance
()
->
recordTodosInJournalsItem
()
->
label
(),
this
);
otherLayout
->
addWidget
(
mR
ecordTodosInJournals
C
heckBox
);
otherBox
->
setLayout
(
otherLayout
);
todoLayout
->
addWidget
(
otherBox
);
todoLayout
->
addStretch
(
1
);
...
...
@@ -808,11 +809,28 @@ protected:
mAgendaIconComboBox
->
checkedIcons
());
KOPrefs
::
instance
()
->
eventViewsPreferences
()
->
setMonthViewIcons
(
mMonthIconComboBox
->
checkedIcons
());
mEnableToolTipsCheckBox
->
setChecked
(
KOPrefs
::
instance
()
->
enableToolTips
());
mTodosUseCategoryColorsCheckBox
->
setChecked
(
KOPrefs
::
instance
()
->
todosUseCategoryColors
());
mRecordTodosInJournalsCheckBox
->
setChecked
(
KOPrefs
::
instance
()
->
recordTodosInJournals
());
mSortCompletedTodosSeparatelyCheckBox
->
setChecked
(
KOPrefs
::
instance
()
->
sortCompletedTodosSeparately
());
}
void
usrWriteConfig
()
override
{
KOPrefs
::
instance
()
->
setEnableToolTips
(
mEnableToolTipsCheckBox
->
isChecked
());
KOPrefs
::
instance
()
->
setTodosUseCategoryColors
(
mTodosUseCategoryColorsCheckBox
->
isChecked
());
KOPrefs
::
instance
()
->
setRecordTodosInJournals
(
mRecordTodosInJournalsCheckBox
->
isChecked
());
KOPrefs
::
instance
()
->
setSortCompletedTodosSeparately
(
mSortCompletedTodosSeparatelyCheckBox
->
isChecked
());
}
private:
KItemIconCheckCombo
*
mMonthIconComboBox
;
KItemIconCheckCombo
*
mAgendaIconComboBox
;
KItemIconCheckCombo
*
mMonthIconComboBox
=
nullptr
;
KItemIconCheckCombo
*
mAgendaIconComboBox
=
nullptr
;
QCheckBox
*
mEnableToolTipsCheckBox
=
nullptr
;
QCheckBox
*
mTodosUseCategoryColorsCheckBox
=
nullptr
;
QCheckBox
*
mRecordTodosInJournalsCheckBox
=
nullptr
;
QCheckBox
*
mSortCompletedTodosSeparatelyCheckBox
=
nullptr
;
};
extern
"C"
...
...
Write
Preview
Markdown
is supported
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