Commit 50f5ec88 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

Use Monitor instead of ChangeRecorder in PIMEventsPlugin

parent d1b8c340
......@@ -20,7 +20,7 @@
#include "pimcalendarsmodel.h"
#include "settingschangenotifier.h"
#include <AkonadiCore/ChangeRecorder>
#include <AkonadiCore/Monitor>
#include <AkonadiCore/CollectionFetchScope>
#include <AkonadiCore/EntityTreeModel>
#include <AkonadiCore/EntityDisplayAttribute>
......@@ -39,7 +39,7 @@ PimCalendarsModel::PimCalendarsModel(QObject *parent)
setSortLocaleAware(true);
setDynamicSortFilter(true);
auto cr = new Akonadi::ChangeRecorder(this);
auto cr = new Akonadi::Monitor(this);
cr->setMimeTypeMonitored(KCalCore::Event::eventMimeType());
cr->setMimeTypeMonitored(KCalCore::Todo::todoMimeType());
cr->setTypeMonitored(Akonadi::Monitor::Collections);
......
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