Port to updeprecated KJob::processedAmountChanged signal

This commit is contained in:
Alexander Lohnau 2023-04-19 21:21:05 +02:00
parent 3effb006f3
commit 042adebd0a
2 changed files with 2 additions and 5 deletions

View file

@ -90,7 +90,7 @@ void CompositeUploadJob::startNextSubJob()
m_currentJobSendPayloadSize = 0;
emitDescription(m_currentJob->getNetworkPacket().get<QString>(QStringLiteral("filename")));
connect(m_currentJob, QOverload<KJob *, KJob::Unit, qulonglong>::of(&UploadJob::processedAmount), this, &CompositeUploadJob::slotProcessedAmount);
connect(m_currentJob, &UploadJob::processedAmountChanged, this, &CompositeUploadJob::slotProcessedAmount);
// Already done by KCompositeJob
// connect(m_currentJob, &KJob::result, this, &CompositeUploadJob::slotResult);

View file

@ -47,10 +47,7 @@ void CompositeFileTransferJob::startNextSubJob()
{i18nc("The destination of a file operation", "Destination"), m_currentJob->destination().toDisplayString(QUrl::PreferLocalFile)});
m_currentJob->start();
connect(m_currentJob,
QOverload<KJob *, KJob::Unit, qulonglong>::of(&FileTransferJob::processedAmount),
this,
&CompositeFileTransferJob::slotProcessedAmount);
connect(m_currentJob, &FileTransferJob::processedAmountChanged, this, &CompositeFileTransferJob::slotProcessedAmount);
}
bool CompositeFileTransferJob::addSubjob(KJob *job)