summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Krause <[email protected]>2017-09-12 10:49:46 +0000
committerVolker Krause <[email protected]>2017-09-12 10:49:46 +0000
commit9f96bbdb670b46cf5f6db93279253058a503d379 (patch)
treef51a577cc1ba26f68665f8a694cb077f6b87a832
parentf39d180f3ad7adde76bf0f33680121ab0c02ab7b (diff)
Adapt to Event::isMultiDay changes
-rw-r--r--src/agenda/agendaitem.cpp2
-rw-r--r--src/agenda/agendaview.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/agenda/agendaitem.cpp b/src/agenda/agendaitem.cpp
index 2d7dda9..261e5ab 100644
--- a/src/agenda/agendaitem.cpp
+++ b/src/agenda/agendaitem.cpp
@@ -1020,7 +1020,7 @@ void AgendaItem::paintEvent(QPaintEvent *ev)
longH.clear();
if (const KCalCore::Event::Ptr event = CalendarSupport::event(mIncidence)) {
- if (event->isMultiDay(KDateTime::LocalZone)) {
+ if (event->isMultiDay(QTimeZone::systemTimeZone())) {
// multi-day, all-day event
shortH =
i18n("%1 - %2",
diff --git a/src/agenda/agendaview.cpp b/src/agenda/agendaview.cpp
index cca4090..89f1ca4 100644
--- a/src/agenda/agendaview.cpp
+++ b/src/agenda/agendaview.cpp
@@ -597,7 +597,7 @@ void AgendaView::Private::insertIncidence(const KCalCore::Incidence::Ptr &incide
} else if (incidence->allDay()) {
mAllDayAgenda->insertAllDayItem(incidence, recurrenceId, beginX, endX,
createSelected);
- } else if (event && event->isMultiDay(KDateTime::LocalZone)) {
+ } else if (event && event->isMultiDay(QTimeZone::systemTimeZone())) {
// TODO: We need a better isMultiDay(), one that receives the occurrence.
// In the single-day handling code there's a neat comment on why