Commit 58d27c92 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use kcalendarcore_version.h as we can build in qt6

parent 548ffe17
Pipeline #181451 passed with stage
in 3 minutes and 43 seconds
......@@ -8,7 +8,7 @@
#include "whatsnextview.h"
#include <kcalcore_version.h>
#include <kcalendarcore_version.h>
#include <Akonadi/CalendarUtils>
#include <Akonadi/ETMCalendar>
......@@ -91,7 +91,7 @@ void WhatsNextView::updateView()
KCalendarCore::Event::List events;
events = calendar()->events(mStartDate, mEndDate, QTimeZone::systemTimeZone(), false);
#if KCALCORE_VERSION < QT_VERSION_CHECK(5, 95, 0)
#if KCALENDARCORE_VERSION < QT_VERSION_CHECK(5, 95, 0)
events = calendar()->sortEvents(events, KCalendarCore::EventSortStartDate, KCalendarCore::SortDirectionAscending);
#else
events = calendar()->sortEvents(std::move(events), 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