Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 01787327 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

Adapt to KCalCore API changes

parent b00253f1
......@@ -49,6 +49,7 @@
#include <kmime/kmime_content.h>
#include <AkonadiWidgets/controlgui.h>
#include <KCalCore/MemoryCalendar>
#include <KCalCore/Utils>
#include <KCalUtils/kcalutils/icaldrag.h>
using namespace KCalCore;
using namespace KCalUtils;
......@@ -1340,9 +1341,9 @@ void MainWindow::executeDropEvent(MainWindow* win, QDropEvent* e)
Todo::Ptr todo = todos[0];
KDateTime start = todo->dtStart(true);
KDateTime start = KCalCore::q2k(todo->dtStart(true), todo->allDay());
if (!start.isValid() && todo->hasDueDate())
start = todo->dtDue(true);
start = KCalCore::q2k(todo->dtDue(true), todo->allDay());
KAEvent::Flags flags = KAEvent::DEFAULT_FONT;
if (start.isDateOnly())
flags |= KAEvent::ANY_TIME;
Markdown is supported
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