Commit 89939674 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make it compile without deprecated methods

parent 47b3eeed
......@@ -345,8 +345,14 @@ bool KonsoleKalendar::showInstance()
// htmlSettings.setTaskAttendees( false );
// htmlSettings.setTaskDueDate( true );
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
htmlSettings.setDateStart(QDateTime(firstdate));
htmlSettings.setDateEnd(QDateTime(lastdate));
#else
htmlSettings.setDateStart(QDateTime(firstdate.startOfDay()));
htmlSettings.setDateEnd(QDateTime(lastdate.startOfDay()));
#endif
KCalUtils::HtmlExport *exp = new KCalUtils::HtmlExport(calendar.data(), &htmlSettings);
status = exp->save(&ts);
......
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