Commit 6207d22b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use kcalendarcore_version.h => we can build against qt6 too

parent 150063f6
Pipeline #181457 passed with stage
in 9 minutes and 9 seconds
......@@ -6,7 +6,7 @@
#include "calendaring.h"
#include "pimkolab_debug.h"
#include <kcalcore_version.h>
#include <kcalendarcore_version.h>
#include <KCalendarCore/Todo>
#include <QDate>
......@@ -89,7 +89,7 @@ std::vector<Kolab::Event> Calendar::getEvents(const Kolab::cDateTime &start, con
const QTimeZone tz = s.timeZone();
KCalendarCore::Event::List list = mCalendar->events(s.date(), e.date(), tz, true);
if (sort) {
#if KCALCORE_VERSION < QT_VERSION_CHECK(5, 95, 0)
#if KCALENDARCORE_VERSION < QT_VERSION_CHECK(5, 95, 0)
list = mCalendar->sortEvents(list, KCalendarCore::EventSortStartDate, KCalendarCore::SortDirectionAscending);
#else
list = mCalendar->sortEvents(std::move(list), KCalendarCore::EventSortStartDate, KCalendarCore::SortDirectionAscending);
......
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