Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 1a45cf15 authored by David Faure's avatar David Faure

Make Attributes const, to prepare for akonadi changes

parent a8734235
......@@ -45,7 +45,7 @@ void EventViews::setResourceColor(const Akonadi::Collection &coll, const QColor
const QString id = QString::number(coll.id());
if (coll.hasAttribute<Akonadi::CollectionColorAttribute>()) {
Akonadi::CollectionColorAttribute *colorAttr
const Akonadi::CollectionColorAttribute *colorAttr
= coll.attribute<Akonadi::CollectionColorAttribute>();
if (colorAttr && colorAttr->color().isValid() && (colorAttr->color() == color)) {
// It's the same color: we save an invalid color
......@@ -69,7 +69,7 @@ QColor EventViews::resourceColor(const Akonadi::Collection &coll, const PrefsPtr
}
// Color stored in akonadi
if (coll.hasAttribute<Akonadi::CollectionColorAttribute>()) {
Akonadi::CollectionColorAttribute *colorAttr
const Akonadi::CollectionColorAttribute *colorAttr
= coll.attribute<Akonadi::CollectionColorAttribute>();
if (colorAttr && colorAttr->color().isValid()) {
return colorAttr->color();
......
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