Commit 8759b391 authored by Laurent Montel's avatar Laurent Montel
Browse files

Use percentChanged

parent abf53545
Pipeline #230762 canceled with stage
in 2 minutes and 16 seconds
......@@ -193,8 +193,7 @@ void MailDispatcherAgent::itemFetched(const Item &item)
i18nc("Message with given subject is being sent.", "Sending: %1", item.payload<KMime::Message::Ptr>()->subject()->asUnicodeString()));
connect(mCurrentJob, &KJob::result, this, &MailDispatcherAgent::sendResult);
// TODO wait kf6. For the moment we can't convert to new connect api.
connect(mCurrentJob, SIGNAL(percent(KJob *, ulong)), this, SLOT(sendPercent(KJob *, ulong)));
connect(mCurrentJob, &SendJob::percentChanged, this, &MailDispatcherAgent::sendPercent);
......@@ -167,9 +167,9 @@ void SendJob::doTraditionalTransport()
// Signals.
connect(job, &TransportJob::result, this, &SendJob::transportResult);
// Wait kf6 We have a private signal
// connect(job, thisOverload<KJob*, ulong>::of(&TransportJob::percent), this, [this](KJob *job,ulong val) {transportPercent(job, val); });
connect(job, SIGNAL(percent(KJob *, ulong)), this, SLOT(transportPercent(KJob *, ulong)));
connect(job, &TransportJob::percentChanged, this, [this](KJob *job, ulong val) {
transportPercent(job, val);
Supports Markdown
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