Convert remaining signals to the new syntax.
This commit is contained in:
parent
9c513c8991
commit
3d57b3211a
|
@ -36,7 +36,7 @@ DeviceScanner::DeviceScanner(QObject* parent, OperationStack& ostack) :
|
|||
|
||||
void DeviceScanner::setupConnections()
|
||||
{
|
||||
connect(CoreBackendManager::self()->backend(), SIGNAL(scanProgress(QString, int)), SIGNAL(progress(QString, int)));
|
||||
connect(CoreBackendManager::self()->backend(), &CoreBackend::scanProgress, this, &DeviceScanner::progress);
|
||||
}
|
||||
|
||||
void DeviceScanner::clear()
|
||||
|
|
|
@ -60,12 +60,12 @@ void OperationRunner::run()
|
|||
|
||||
emit opStarted(i + 1, op);
|
||||
|
||||
connect(op, SIGNAL(progress(int)), this, SIGNAL(progressSub(int)));
|
||||
connect(op, &Operation::progress, this, &OperationRunner::progressSub);
|
||||
|
||||
status = op->execute(report());
|
||||
op->preview();
|
||||
|
||||
disconnect(op, SIGNAL(progress(int)), this, SIGNAL(progressSub(int)));
|
||||
disconnect(op, &Operation::progress, this, &OperationRunner::progressSub);
|
||||
|
||||
emit opFinished(i + 1, op);
|
||||
|
||||
|
|
|
@ -115,9 +115,9 @@ bool ResizeFileSystemJob::resizeFileSystemBackend(Report& report)
|
|||
CoreBackendPartitionTable* backendPartitionTable = backendDevice->openPartitionTable();
|
||||
|
||||
if (backendPartitionTable) {
|
||||
connect(CoreBackendManager::self()->backend(), SIGNAL(progress(int)), this, SIGNAL(progress(int)));
|
||||
connect(CoreBackendManager::self()->backend(), &CoreBackend::progress, this, &ResizeFileSystemJob::progress);
|
||||
rval = backendPartitionTable->resizeFileSystem(report, partition(), newLength());
|
||||
disconnect(CoreBackendManager::self()->backend(), SIGNAL(progress(int)), this, SIGNAL(progress(int)));
|
||||
disconnect(CoreBackendManager::self()->backend(), &CoreBackend::progress, this, &ResizeFileSystemJob::progress);
|
||||
|
||||
if (rval) {
|
||||
report.line() << i18nc("@info/plain", "Successfully resized file system using internal backend functions.");
|
||||
|
|
Loading…
Reference in New Issue