Commit f39d180f authored by Volker Krause's avatar Volker Krause

Adapt to KCalCore::Calendar API changes

parent ccd4ef93
......@@ -357,7 +357,7 @@ void TimelineView::showDates(const QDate &start, const QDate &end, const QDate &
KCalCore::Event::List events;
for (QDate day = start; day <= end; day = day.addDays(1)) {
events = calendar()->events(day, KDateTime::LocalZone,
events = calendar()->events(day, QTimeZone::systemTimeZone(),
KCalCore::EventSortStartDate,
KCalCore::SortDirectionAscending);
Q_FOREACH (const KCalCore::Event::Ptr &event, events) {
......
......@@ -153,7 +153,7 @@ void TimelineView::Private::insertIncidence(const Akonadi::Item &incidence)
for (QDate day = mStartDate; day <= mEndDate; day = day.addDays(1)) {
KCalCore::Event::List events = q->calendar()->events(day,
KDateTime::LocalZone,
QTimeZone::systemTimeZone(),
KCalCore::EventSortStartDate,
KCalCore::SortDirectionAscending);
if (events.contains(event)) {
......
......@@ -234,7 +234,7 @@ void TimeSpentView::changeIncidenceDisplay(const Akonadi::Item &,
void TimeSpentView::updateView()
{
mView->mEventList = calendar()->events(mStartDate, mEndDate, KDateTime::LocalZone);
mView->mEventList = calendar()->events(mStartDate, mEndDate, QTimeZone::systemTimeZone());
mView->repaint();
}
......@@ -108,7 +108,7 @@ void WhatsNextView::updateView()
mText += QLatin1String("</h2>\n");
KCalCore::Event::List events;
events = calendar()->events(mStartDate, mEndDate, KDateTime::LocalZone, false);
events = calendar()->events(mStartDate, mEndDate, QTimeZone::systemTimeZone(), false);
events = calendar()->sortEvents(events, KCalCore::EventSortStartDate,
KCalCore::SortDirectionAscending);
......@@ -188,7 +188,7 @@ void WhatsNextView::updateView()
QStringList myEmails(CalendarSupport::KCalPrefs::instance()->allEmails());
int replies = 0;
events = calendar()->events(QDate::currentDate(), QDate(2975, 12, 6), KDateTime::LocalZone);
events = calendar()->events(QDate::currentDate(), QDate(2975, 12, 6), QTimeZone::systemTimeZone());
Q_FOREACH (const KCalCore::Event::Ptr &ev, events) {
KCalCore::Attendee::Ptr me = ev->attendeeByMails(myEmails);
if (me != nullptr) {
......
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