Commit 4d7b71d7 authored by David Redondo's avatar David Redondo 🏎

QDateTime(const QDate&) is deprecated

parent 853e135c
......@@ -61,8 +61,8 @@ void HolidaysEventsPlugin::loadEventsForDateRange(const QDate &startDate, const
Q_FOREACH (const KHolidays::Holiday &holiday, holidays) {
CalendarEvents::EventData eventData;
eventData.setStartDateTime(QDateTime(holiday.observedStartDate()));
eventData.setEndDateTime(QDateTime(holiday.observedEndDate()));
eventData.setStartDateTime(holiday.observedStartDate().startOfDay());
eventData.setEndDateTime(holiday.observedEndDate().endOfDay());
eventData.setIsAllDay(true);
eventData.setTitle(holiday.name());
eventData.setEventType(CalendarEvents::EventData::Holiday);
......
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