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

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

parent 81ae5baf
Pipeline #181453 passed with stage
in 4 minutes and 48 seconds
......@@ -11,7 +11,7 @@
#include "korganizerinterface.h"
#include "todoplugin.h"
#include <CalendarSupport/CalendarSingleton>
#include <kcalcore_version.h>
#include <kcalendarcore_version.h>
#include <Akonadi/CalendarUtils>
#include <Akonadi/Collection>
......@@ -125,7 +125,7 @@ void TodoSummaryWidget::updateView()
prList.append(todo);
}
if (!prList.isEmpty()) {
#if KCALCORE_VERSION < QT_VERSION_CHECK(5, 95, 0)
#if KCALENDARCORE_VERSION < QT_VERSION_CHECK(5, 95, 0)
prList = Akonadi::ETMCalendar::sortTodos(prList, KCalendarCore::TodoSortSummary, KCalendarCore::SortDirectionAscending);
prList = Akonadi::ETMCalendar::sortTodos(prList, KCalendarCore::TodoSortPriority, KCalendarCore::SortDirectionAscending);
prList = Akonadi::ETMCalendar::sortTodos(prList, KCalendarCore::TodoSortDueDate, 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