Commit 42d3be6a authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

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

parent dd0ba538
Pipeline #181455 passed with stage
in 3 minutes and 14 seconds
......@@ -18,7 +18,7 @@
#include <KConfig>
#include <KConfigGroup>
#include <KWordWrap>
#include <kcalcore_version.h>
#include <kcalendarcore_version.h>
#include <KLocalizedString>
#include <QAbstractTextDocumentLayout>
......@@ -1783,7 +1783,7 @@ void CalPrintPluginBase::drawTodo(int &count,
for (const KCalendarCore::Todo::Ptr &todo : std::as_const(t)) {
tl.append(todo);
}
#if KCALCORE_VERSION < QT_VERSION_CHECK(5, 95, 0)
#if KCALENDARCORE_VERSION < QT_VERSION_CHECK(5, 95, 0)
KCalendarCore::Todo::List sl = mCalendar->sortTodos(tl, sortField, sortDir);
#else
KCalendarCore::Todo::List sl = mCalendar->sortTodos(std::move(tl), sortField, sortDir);
......
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