Port to updeprecated KJob::processedAmountChanged signal
This commit is contained in:
parent
50ce331d40
commit
4c94b9d9f5
2 changed files with 2 additions and 5 deletions
|
@ -98,7 +98,7 @@ void CompositeUploadJob::startNextSubJob()
|
||||||
#ifdef SAILFISHOS
|
#ifdef SAILFISHOS
|
||||||
connect(m_currentJob, SIGNAL(processedAmount(KJob *, KJob::Unit, qulonglong)), this, SLOT(slotProcessedAmount(KJob *, KJob::Unit, qulonglong)));
|
connect(m_currentJob, SIGNAL(processedAmount(KJob *, KJob::Unit, qulonglong)), this, SLOT(slotProcessedAmount(KJob *, KJob::Unit, qulonglong)));
|
||||||
#else
|
#else
|
||||||
connect(m_currentJob, QOverload<KJob *, KJob::Unit, qulonglong>::of(&UploadJob::processedAmount), this, &CompositeUploadJob::slotProcessedAmount);
|
connect(m_currentJob, &UploadJob::processedAmountChanged, this, &CompositeUploadJob::slotProcessedAmount);
|
||||||
#endif
|
#endif
|
||||||
// Already done by KCompositeJob
|
// Already done by KCompositeJob
|
||||||
// connect(m_currentJob, &KJob::result, this, &CompositeUploadJob::slotResult);
|
// connect(m_currentJob, &KJob::result, this, &CompositeUploadJob::slotResult);
|
||||||
|
|
|
@ -50,10 +50,7 @@ void CompositeFileTransferJob::startNextSubJob()
|
||||||
#ifdef SAILFISHOS
|
#ifdef SAILFISHOS
|
||||||
connect(m_currentJob, SIGNAL(processedAmount(KJob *, KJob::Unit, qulonglong)), this, SLOT(slotProcessedAmount(KJob *, KJob::Unit, qulonglong)));
|
connect(m_currentJob, SIGNAL(processedAmount(KJob *, KJob::Unit, qulonglong)), this, SLOT(slotProcessedAmount(KJob *, KJob::Unit, qulonglong)));
|
||||||
#else
|
#else
|
||||||
connect(m_currentJob,
|
connect(m_currentJob, &FileTransferJob::processedAmountChanged, this, &CompositeFileTransferJob::slotProcessedAmount);
|
||||||
QOverload<KJob *, KJob::Unit, qulonglong>::of(&FileTransferJob::processedAmount),
|
|
||||||
this,
|
|
||||||
&CompositeFileTransferJob::slotProcessedAmount);
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue