Convert remaining signals to the new syntax.

This commit is contained in:
Andrius Štikonas 2016-05-24 01:37:15 +01:00
parent 9c513c8991
commit 3d57b3211a
3 changed files with 5 additions and 5 deletions

View File

@ -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()

View File

@ -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);

View File

@ -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.");