Port to updeprecated KJob::processedAmountChanged signal

This commit is contained in:
Alexander Lohnau 2023-04-19 21:21:05 +02:00
parent 50ce331d40
commit 4c94b9d9f5
2 changed files with 2 additions and 5 deletions

View file

@ -98,7 +98,7 @@ void CompositeUploadJob::startNextSubJob()
#ifdef SAILFISHOS
connect(m_currentJob, SIGNAL(processedAmount(KJob *, KJob::Unit, qulonglong)), this, SLOT(slotProcessedAmount(KJob *, KJob::Unit, qulonglong)));
#else
connect(m_currentJob, QOverload<KJob *, KJob::Unit, qulonglong>::of(&UploadJob::processedAmount), this, &CompositeUploadJob::slotProcessedAmount);
connect(m_currentJob, &UploadJob::processedAmountChanged, this, &CompositeUploadJob::slotProcessedAmount);
#endif
// Already done by KCompositeJob
// connect(m_currentJob, &KJob::result, this, &CompositeUploadJob::slotResult);

View file

@ -50,10 +50,7 @@ void CompositeFileTransferJob::startNextSubJob()
#ifdef SAILFISHOS
connect(m_currentJob, SIGNAL(processedAmount(KJob *, KJob::Unit, qulonglong)), this, SLOT(slotProcessedAmount(KJob *, KJob::Unit, qulonglong)));
#else
connect(m_currentJob,
QOverload<KJob *, KJob::Unit, qulonglong>::of(&FileTransferJob::processedAmount),
this,
&CompositeFileTransferJob::slotProcessedAmount);
connect(m_currentJob, &FileTransferJob::processedAmountChanged, this, &CompositeFileTransferJob::slotProcessedAmount);
#endif
}