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 5cf04abe authored by Laurent Montel's avatar Laurent Montel 😁

Port more code to new connect api

parent 6cb38350
......@@ -114,7 +114,7 @@ void OutboxQueue::Private::initQueue()
ItemFetchJob *job = new ItemFetchJob(outbox);
job->fetchScope().fetchAllAttributes();
job->fetchScope().fetchFullPayload(false);
connect(job, SIGNAL(result(KJob*)), q, SLOT(collectionFetched(KJob*)));
connect(job, &ItemFetchJob::result, q, [this](KJob *job) { collectionFetched(job);});
}
void OutboxQueue::Private::addIfComplete(const Item &item)
......
......@@ -93,7 +93,7 @@ void StoreResultJob::Private::fetchDone(KJob *job)
}
ItemModifyJob *modifyJob = new ItemModifyJob(item, q);
QObject::connect(modifyJob, SIGNAL(result(KJob*)), q, SLOT(modifyDone(KJob*)));
QObject::connect(modifyJob, &ItemModifyJob::result, q, [this](KJob *job) { modifyDone(job); });
}
void StoreResultJob::Private::modifyDone(KJob *job)
......@@ -125,7 +125,7 @@ void StoreResultJob::doStart()
{
// Fetch item in case it was modified elsewhere.
ItemFetchJob *job = new ItemFetchJob(d->item, this);
connect(job, SIGNAL(result(KJob*)), this, SLOT(fetchDone(KJob*)));
connect(job, &ItemFetchJob::result, this, [this](KJob *job) { d->fetchDone(job); });
}
bool StoreResultJob::success() const
......
......@@ -72,7 +72,7 @@ Row::Row(const QSharedPointer<MigratorBase> &migrator, MigratorModel &model)
mModel(model)
{
connect(migrator.data(), &MigratorBase::stateChanged, this, &Row::stateChanged);
connect(migrator.data(), SIGNAL(progress(int)), this, SLOT(progress(int)));
connect(migrator.data(), QOverload<int>::of(&MigratorBase::progress), this, &Row::progress);
}
bool Row::operator==(const Row &other) const
......
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