Commit 69f41bae authored by Laurent Montel's avatar Laurent Montel 😁

Port to new connect api

parent e5e95e9d
......@@ -179,7 +179,7 @@ void Akonadi::AkonadiContactEditor::Private::itemChanged(const Akonadi::Item &it
job->fetchScope().fetchAttribute<ContactMetaDataAttribute>();
job->fetchScope().setAncestorRetrieval(Akonadi::ItemFetchScope::Parent);
mParent->connect(job, SIGNAL(result(KJob*)), mParent, SLOT(itemFetchDone(KJob*)));
mParent->connect(job, &ItemFetchJob::result, mParent, [this](KJob *job) {itemFetchDone(job);});
}
delete dlg;
......@@ -202,7 +202,8 @@ void Akonadi::AkonadiContactEditor::Private::setupMonitor()
mMonitor->setObjectName(QStringLiteral("ContactEditorMonitor"));
mMonitor->ignoreSession(Akonadi::Session::defaultSession());
connect(mMonitor, SIGNAL(itemChanged(Akonadi::Item,QSet<QByteArray>)), mParent, SLOT(itemChanged(Akonadi::Item,QSet<QByteArray>)));
connect(mMonitor, &Monitor::itemChanged, mParent,
[this](const Akonadi::Item &item, const QSet<QByteArray> &set) {itemChanged(item, set); });
}
Akonadi::AkonadiContactEditor::AkonadiContactEditor(Mode mode, QWidget *parent)
......
......@@ -182,10 +182,6 @@ private:
//@cond PRIVATE
class Private;
Private *const d;
Q_PRIVATE_SLOT(d, void itemFetchDone(KJob *))
Q_PRIVATE_SLOT(d, void storeDone(KJob *))
Q_PRIVATE_SLOT(d, void itemChanged(const Akonadi::Item &, const QSet<QByteArray> &))
//@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