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
PIM Calendar Support
Commits
503675ba
Commit
503675ba
authored
Aug 29, 2022
by
Volker Krause
Browse files
Remove the now unused category color API
This has been replaced by Akonadi::TagCache.
parent
fb7421b5
Pipeline
#228113
passed with stage
in 5 minutes and 8 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/kcalprefs.cpp
View file @
503675ba
...
...
@@ -259,22 +259,6 @@ bool KCalPrefs::thatIsMe(const QString &_email)
return
false
;
}
void
KCalPrefs
::
setCategoryColor
(
const
QString
&
cat
,
const
QColor
&
color
)
{
Akonadi
::
TagCache
::
instance
()
->
setTagColor
(
cat
,
color
);
}
QColor
KCalPrefs
::
categoryColor
(
const
QString
&
cat
)
const
{
QColor
color
=
Akonadi
::
TagCache
::
instance
()
->
tagColor
(
cat
);
return
color
.
isValid
()
?
color
:
d
->
mDefaultCategoryColor
;
}
bool
KCalPrefs
::
hasCategoryColor
(
const
QString
&
cat
)
const
{
return
categoryColor
(
cat
)
!=
d
->
mDefaultCategoryColor
;
}
void
KCalPrefs
::
setDayBegins
(
const
QDateTime
&
dateTime
)
{
d
->
mDayBegins
=
dateTime
;
...
...
src/kcalprefs.h
View file @
503675ba
...
...
@@ -55,10 +55,6 @@ public:
Akonadi
::
Collection
::
Id
defaultCalendarId
()
const
;
void
setDefaultCalendarId
(
Akonadi
::
Collection
::
Id
);
void
setCategoryColor
(
const
QString
&
cat
,
const
QColor
&
color
);
QColor
categoryColor
(
const
QString
&
cat
)
const
;
bool
hasCategoryColor
(
const
QString
&
cat
)
const
;
void
setDayBegins
(
const
QDateTime
&
dateTime
);
QDateTime
dayBegins
()
const
;
...
...
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