From b234c6c74ba76e8d58ab9a55ab1054eb761697e1 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Mon, 14 May 2018 16:19:43 +0200 Subject: Implement DayLongEventModel and integrate it to calendar --- tests/teststore.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/teststore.cpp b/tests/teststore.cpp index 3a60676d..73e34101 100644 --- a/tests/teststore.cpp +++ b/tests/teststore.cpp @@ -160,6 +160,10 @@ static void createEvent(const QVariantMap &object, const QByteArray &calendarId calcoreEvent->setDtStart(startTime); calcoreEvent->setDtEnd(endTime); + if (object.contains("allDay")) { + calcoreEvent->setAllDay(object["allDay"].toBool()); + } + auto ical = KCalCore::ICalFormat().toICalString(calcoreEvent); sinkEvent.setIcal(ical.toUtf8()); -- cgit v1.2.3