Commit acac3293 authored by Volker Krause's avatar Volker Krause

Adapt to KCalCore::Calendar API changes

parent 774e0df9
......@@ -123,7 +123,7 @@ void EventArchiver::run(const Akonadi::ETMCalendar::Ptr &calendar,
QDate(1769, 12, 1),
// #29555, also advertised by the "limitDate not included" in the class docu
limitDate.addDays(-1),
KDateTime::LocalZone,
QTimeZone::systemTimeZone(),
true);
}
if (KCalPrefs::instance()->mArchiveTodos) {
......
......@@ -846,7 +846,7 @@ void CalPrintDay::print(QPainter &p, int width, int height)
}
drawHeader(p, local.toString(curDay, QLocale::ShortFormat), curDay, QDate(), headerBox);
KCalCore::Event::List eventList = mCalendar->events(curDay, KDateTime::LocalZone,
KCalCore::Event::List eventList = mCalendar->events(curDay, QTimeZone::systemTimeZone(),
KCalCore::EventSortStartDate,
KCalCore::SortDirectionAscending);
......
......@@ -1112,7 +1112,7 @@ void CalPrintPluginBase::drawDayBox(QPainter &p, const QDate &qd,
p.drawText(headerTextBox, Qt::AlignRight | Qt::AlignVCenter, dayNumStr);
const KCalCore::Event::List eventList =
mCalendar->events(qd, KDateTime::LocalZone,
mCalendar->events(qd, QTimeZone::systemTimeZone(),
KCalCore::EventSortStartDate,
KCalCore::SortDirectionAscending);
......@@ -1448,7 +1448,7 @@ void CalPrintPluginBase::drawTimeTable(QPainter &p,
if (expandable) {
QDate curDate(fromDate);
while (curDate <= toDate) {
KCalCore::Event::List eventList = mCalendar->events(curDate, KDateTime::LocalZone);
KCalCore::Event::List eventList = mCalendar->events(curDate, QTimeZone::systemTimeZone());
for (const KCalCore::Event::Ptr &event : qAsConst(eventList)) {
Q_ASSERT(event);
if (event->allDay()) {
......@@ -1490,7 +1490,7 @@ void CalPrintPluginBase::drawTimeTable(QPainter &p,
QRect dayBox(allDayBox);
dayBox.setTop(tlBox.top());
dayBox.setBottom(box.bottom());
KCalCore::Event::List eventList = mCalendar->events(curDate, KDateTime::LocalZone,
KCalCore::Event::List eventList = mCalendar->events(curDate, QTimeZone::systemTimeZone(),
KCalCore::EventSortStartDate,
KCalCore::SortDirectionAscending);
......
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