aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-11-03 07:19:57 +0100
committerMontel Laurent <[email protected]>2017-11-03 07:19:57 +0100
commit69f41baea7cc938677144d155a9f46f28df71e93 (patch)
tree2e135a6d4c3528b3e5700c46995446191659eee4
parente5e95e9df4feba17fd1849b527bf5ccd0583e0e6 (diff)
Port to new connect api
-rw-r--r--src/akonadi-contacts/contacteditor.cpp5
-rw-r--r--src/akonadi-contacts/contacteditor.h4
2 files changed, 3 insertions, 6 deletions
diff --git a/src/akonadi-contacts/contacteditor.cpp b/src/akonadi-contacts/contacteditor.cpp
index 4b815f5..25ef12a 100644
--- a/src/akonadi-contacts/contacteditor.cpp
+++ b/src/akonadi-contacts/contacteditor.cpp
@@ -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)
diff --git a/src/akonadi-contacts/contacteditor.h b/src/akonadi-contacts/contacteditor.h
index b100c6e..28b294d 100644
--- a/src/akonadi-contacts/contacteditor.h
+++ b/src/akonadi-contacts/contacteditor.h
@@ -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
};
}