Skip to content
Commit 41a1d204 authored by Denis Kurz's avatar Denis Kurz
Browse files

Factor out coloring from AgendaItem::paintEvent.

Summary:
The paintEvent method is already quite long, and calculating colors
inline prohibits a lot of const uses. This commit factors it out into
easily comprehensible small new methods, also making it more obvious
where to look for agenda item coloring for future changes.

Test Plan:
I tried all color settings for Agenda View and could not
find different behavior with or without patch -- just as expected, as
is a refactoring patch

Reviewers: #kde_pim, dvratil

Reviewed By: #kde_pim, dvratil

Subscribers: dvratil, kde-pim

Tags: #kde_pim

Differential Revision: https://phabricator.kde.org/D16089
parent 80e063a6
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