Commit 316b1ebf authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make it compile without deprecated methods

parent 3e691090
Pipeline #181264 failed with stage
in 3 minutes and 13 seconds
......@@ -83,7 +83,7 @@ endif()
ecm_set_disabled_deprecation_versions(QT 5.15.2
KF 5.94.0
KF 5.95.0
)
......
......@@ -16,6 +16,7 @@
#include <CalendarSupport/CollectionSelection>
#include <CalendarSupport/KCalPrefs>
#include <CalendarSupport/Utils>
#include <kholidays_version.h>
#include "calendarview_debug.h"
#include <KCalendarCore/OccurrenceIterator>
......@@ -440,7 +441,11 @@ KHolidays::Holiday::List MonthView::holidays(QDate startDate, QDate endDate)
for (auto const &r : regions) {
KHolidays::HolidayRegion region(r);
if (region.isValid()) {
#if KHOLIDAYS_VERSION < QT_VERSION_CHECK(5, 95, 0)
holidays += region.holidays(startDate, endDate);
#else
holidays += region.rawHolidaysWithAstroSeasons(startDate, endDate);
#endif
}
}
return holidays;
......
Supports Markdown
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