Skip to content
Verified Commit 607beeef authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

Make calendar priting work with any KCalendarCore::Calendar

The printing code depends on ETMCalendar only because the ETMCalendar
precalculates map of related Todos when their are inserted into the
Calendar and exposes them through an API. The printing code makes
use of this feature to print related Todos.

With this change the printing code uses the generic
KCalendarCore::Calendar and to preserve the functionality, it simply
iterates through all incidences in the calendar and tries to find any
Todo related to the current Todo. While less efficient, it only happens
when printing a calendar (no-body does that) and one would have to have
a really huge calendar to notice any big delay. Additonally, we can
upstream the functionality of retrieving related Todos into
KCalendarCore::Calendar itself, since that feature does not depend on
Akonadi at all.
parent c6c2db79
Pipeline #425318 passed with stage
in 2 minutes and 10 seconds
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