Commit 7515ea33 authored by Sergio Martins's avatar Sergio Martins
Browse files

pimsettingsexported: Port to Qt5 connect syntax, which is faster

parent a5bdd75c
......@@ -79,7 +79,7 @@ int main(int argc, char *argv[])
console->setTemplateFileName(templateFile);
}
console->start();
QObject::connect(console, SIGNAL(finished()), &app, SLOT(quit()));
QObject::connect(console, &PimSettingExporterConsole::finished, &app, &QCoreApplication::quit);
return app.exec();
}
......@@ -50,7 +50,7 @@ AbstractImportExportJob::AbstractImportExportJob(QObject *parent, ArchiveStorage
mImportExportProgressIndicator(new ImportExportProgressIndicatorBase(this))
{
mImportExportProgressIndicator->setNumberOfStep(numberOfStep);
connect(mImportExportProgressIndicator, SIGNAL(info(QString)), this, SIGNAL(info(QString)));
connect(mImportExportProgressIndicator, &ImportExportProgressIndicatorBase::info, this, &AbstractImportExportJob::info);
}
AbstractImportExportJob::~AbstractImportExportJob()
......
......@@ -42,8 +42,8 @@ int main(int argc, char *argv[])
PimSettingExporterWindow *backupMailWin = new PimSettingExporterWindow();
parser.setExportWindow(backupMailWin);
QObject::connect(&service, SIGNAL(activateRequested(QStringList,QString)),
&parser, SLOT(slotActivateRequested(QStringList,QString)));
QObject::connect(&service, &KDBusService::activateRequested,
&parser, &PimSettingCommandLineOption::slotActivateRequested);
backupMailWin->show();
parser.handleCommandLine();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment