Commit 503675ba authored by Volker Krause's avatar 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
......@@ -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;
......@@ -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;
Supports Markdown
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