Commit e536c713 authored by Laurent Montel's avatar Laurent Montel 😁

Port to new connect api

parent fc481aba
......@@ -49,10 +49,11 @@ SpecialCollectionsPrivate::SpecialCollectionsPrivate(KCoreConfigSkeleton *settin
/// from one of our specialcollection folders,
/// we have to watch all mail item add/move/delete notifications
/// and check for the parent to see if it is one we care about
QObject::connect(mMonitor, SIGNAL(collectionRemoved(Akonadi::Collection)),
q, SLOT(collectionRemoved(Akonadi::Collection)));
QObject::connect(mMonitor, SIGNAL(collectionStatisticsChanged(Akonadi::Collection::Id,Akonadi::CollectionStatistics)),
q, SLOT(collectionStatisticsChanged(Akonadi::Collection::Id,Akonadi::CollectionStatistics)));
QObject::connect(mMonitor, &Monitor::collectionRemoved,
q, [this](const Akonadi::Collection &col) { collectionRemoved(col); });
QObject::connect(mMonitor, &Monitor::collectionStatisticsChanged,
q, [this](Akonadi::Collection::Id id, const Akonadi::CollectionStatistics &statistics)
{ collectionStatisticsChanged(id, statistics); });
}
SpecialCollectionsPrivate::~SpecialCollectionsPrivate()
......
......@@ -168,8 +168,6 @@ private:
SpecialCollectionsPrivate *const d;
Q_PRIVATE_SLOT(d, void collectionRemoved(const Akonadi::Collection &))
Q_PRIVATE_SLOT(d, void collectionStatisticsChanged(Akonadi::Collection::Id, const Akonadi::CollectionStatistics &))
Q_PRIVATE_SLOT(d, void collectionFetchJobFinished(KJob *))
//@endcond
};
......
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