Commit 4e03f6ef authored by Laurent Montel's avatar Laurent Montel
Browse files

Use new connect api

parent cd4b1444
Pipeline #230777 passed with stage
in 8 minutes and 48 seconds
......@@ -95,7 +95,7 @@ void TransportMgr::sendBtnClicked()
job->setBcc(mBccEdit->text().isEmpty() ? QStringList() : mBccEdit->text().split(QLatin1Char(',')));
job->setData(mMailEdit->document()->toPlainText().toLatin1());
connect(job, &KJob::result, this, &TransportMgr::jobResult);
connect(job, SIGNAL(percent(KJob *, ulong)), SLOT(jobPercent(KJob *, ulong)));
connect(job, &TransportJob::percentChanged, this, &TransportMgr::jobPercent);
connect(job, &KJob::infoMessage, this, &TransportMgr::jobInfoMessage);
mCurrentJob = job;
TransportManager::self()->schedule(job);
......
......@@ -127,9 +127,7 @@ MessageQueueJob *MessageQueuer::createQueueJob()
job->addressAttribute().setBcc(mBccEdit->text().isEmpty() ? QStringList() : mBccEdit->text().split(QLatin1Char(',')));
connect(job, &MessageQueueJob::result, this, &MessageQueuer::jobResult);
// clang-format off
connect(job, SIGNAL(percent(KJob*, ulong)), SLOT(jobPercent(KJob*, ulong)));
// clang-format on
connect(job, &MessageQueueJob::percentChanged, this, &MessageQueuer::jobPercent);
connect(job, &KJob::infoMessage, this, &MessageQueuer::jobInfoMessage);
return job;
......
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