Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

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

Port to new connect api

parent 25080874
......@@ -235,7 +235,7 @@ void Akonadi::AkonadiContactEditor::loadContact(const Akonadi::Item &item)
job->fetchScope().fetchAttribute<ContactMetaDataAttribute>();
job->fetchScope().setAncestorRetrieval(Akonadi::ItemFetchScope::Parent);
connect(job, SIGNAL(result(KJob*)), SLOT(itemFetchDone(KJob*)));
connect(job, &ItemFetchJob::result, this, [this](KJob *job) { d->itemFetchDone(job); });
d->setupMonitor();
d->mMonitor->setItemMonitored(item);
......
......@@ -221,7 +221,7 @@ ContactGroupEditor::ContactGroupEditor(Mode mode, QWidget *parent)
d->mGroupModel->loadContactGroup(dummyGroup);
QTimer::singleShot(0, this, [this] () { d->adaptHeaderSizes(); });
QTimer::singleShot(0, d->mGui.groupName, SLOT(setFocus()));
QTimer::singleShot(0, d->mGui.groupName, QOverload<>::of(&ContactGroupEditor::setFocus));
}
d->mGui.membersView->header()->setStretchLastSection(true);
......
......@@ -70,7 +70,7 @@ public:
job->fetchScope().fetchFullPayload();
job->setProperty("preferredEmail", reference.preferredEmail());
mParent->connect(job, SIGNAL(result(KJob*)), mParent, SLOT(fetchResult(KJob*)));
mParent->connect(job, &ItemFetchJob::result, mParent, [this](KJob *job) { fetchResult(job); });
mFetchCount++;
}
......
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