1
0
Fork 0
forked from len0rd/rockbox

rbutil: Modernize connect() calls.

Auto fixed by clazy.

Change-Id: Ib7cce8c0a85f8f915263980bf5d2508a4b19bbe3
This commit is contained in:
Dominik Riebeling 2021-12-25 17:29:55 +01:00
parent dce2ccdd96
commit 6ff75b475c
13 changed files with 109 additions and 110 deletions

View file

@ -30,7 +30,7 @@ CreateVoiceWindow::CreateVoiceWindow(QWidget *parent) : QDialog(parent)
ui.setupUi(this);
voicecreator = new VoiceFileCreator(this);
updateSettings();
connect(ui.change,SIGNAL(clicked()),this,SLOT(change()));
connect(ui.change,&QAbstractButton::clicked,this,&CreateVoiceWindow::change);
}
void CreateVoiceWindow::change()
@ -40,14 +40,14 @@ void CreateVoiceWindow::change()
// call configuration dialog
Config *cw = new Config(this,4);
connect(cw, SIGNAL(settingsUpdated()), this, SLOT(updateSettings()));
connect(cw, &Config::settingsUpdated, this, &CreateVoiceWindow::updateSettings);
cw->show();
}
void CreateVoiceWindow::accept()
{
logger = new ProgressLoggerGui(this);
connect(logger,SIGNAL(closed()),this,SLOT(close()));
connect(logger,&ProgressLoggerGui::closed,this,&QWidget::close);
logger->show();
saveSettings();
@ -60,7 +60,7 @@ void CreateVoiceWindow::accept()
//start creating
connect(voicecreator, SIGNAL(done(bool)), logger, SLOT(setFinished()));
connect(voicecreator, SIGNAL(logItem(QString, int)), logger, SLOT(addItem(QString, int)));
connect(voicecreator, SIGNAL(logProgress(int, int)), logger, SLOT(setProgress(int, int)));
connect(voicecreator, &VoiceFileCreator::logProgress, logger, &ProgressLoggerGui::setProgress);
connect(logger,SIGNAL(aborted()),voicecreator,SLOT(abort()));
voicecreator->createVoiceFile();
}