diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2021-12-25 17:29:55 +0100 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2021-12-25 17:47:14 +0100 |
commit | 6ff75b475c2014271ac325aaf9cdae0d2909c0e6 (patch) | |
tree | baf72ed29ca7fe6ba1d0042a773f6d3b9e173325 /utils/rbutilqt/createvoicewindow.cpp | |
parent | dce2ccdd967820ad795927bb837ae34cf20929b8 (diff) | |
download | rockbox-6ff75b475c2014271ac325aaf9cdae0d2909c0e6.tar.gz rockbox-6ff75b475c2014271ac325aaf9cdae0d2909c0e6.zip |
rbutil: Modernize connect() calls.
Auto fixed by clazy.
Change-Id: Ib7cce8c0a85f8f915263980bf5d2508a4b19bbe3
Diffstat (limited to 'utils/rbutilqt/createvoicewindow.cpp')
-rw-r--r-- | utils/rbutilqt/createvoicewindow.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/rbutilqt/createvoicewindow.cpp b/utils/rbutilqt/createvoicewindow.cpp index 158c1201ce..36131cb537 100644 --- a/utils/rbutilqt/createvoicewindow.cpp +++ b/utils/rbutilqt/createvoicewindow.cpp | |||
@@ -30,7 +30,7 @@ CreateVoiceWindow::CreateVoiceWindow(QWidget *parent) : QDialog(parent) | |||
30 | ui.setupUi(this); | 30 | ui.setupUi(this); |
31 | voicecreator = new VoiceFileCreator(this); | 31 | voicecreator = new VoiceFileCreator(this); |
32 | updateSettings(); | 32 | updateSettings(); |
33 | connect(ui.change,SIGNAL(clicked()),this,SLOT(change())); | 33 | connect(ui.change,&QAbstractButton::clicked,this,&CreateVoiceWindow::change); |
34 | } | 34 | } |
35 | 35 | ||
36 | void CreateVoiceWindow::change() | 36 | void CreateVoiceWindow::change() |
@@ -40,14 +40,14 @@ void CreateVoiceWindow::change() | |||
40 | 40 | ||
41 | // call configuration dialog | 41 | // call configuration dialog |
42 | Config *cw = new Config(this,4); | 42 | Config *cw = new Config(this,4); |
43 | connect(cw, SIGNAL(settingsUpdated()), this, SLOT(updateSettings())); | 43 | connect(cw, &Config::settingsUpdated, this, &CreateVoiceWindow::updateSettings); |
44 | cw->show(); | 44 | cw->show(); |
45 | } | 45 | } |
46 | 46 | ||
47 | void CreateVoiceWindow::accept() | 47 | void CreateVoiceWindow::accept() |
48 | { | 48 | { |
49 | logger = new ProgressLoggerGui(this); | 49 | logger = new ProgressLoggerGui(this); |
50 | connect(logger,SIGNAL(closed()),this,SLOT(close())); | 50 | connect(logger,&ProgressLoggerGui::closed,this,&QWidget::close); |
51 | logger->show(); | 51 | logger->show(); |
52 | 52 | ||
53 | saveSettings(); | 53 | saveSettings(); |
@@ -60,7 +60,7 @@ void CreateVoiceWindow::accept() | |||
60 | //start creating | 60 | //start creating |
61 | connect(voicecreator, SIGNAL(done(bool)), logger, SLOT(setFinished())); | 61 | connect(voicecreator, SIGNAL(done(bool)), logger, SLOT(setFinished())); |
62 | connect(voicecreator, SIGNAL(logItem(QString, int)), logger, SLOT(addItem(QString, int))); | 62 | connect(voicecreator, SIGNAL(logItem(QString, int)), logger, SLOT(addItem(QString, int))); |
63 | connect(voicecreator, SIGNAL(logProgress(int, int)), logger, SLOT(setProgress(int, int))); | 63 | connect(voicecreator, &VoiceFileCreator::logProgress, logger, &ProgressLoggerGui::setProgress); |
64 | connect(logger,SIGNAL(aborted()),voicecreator,SLOT(abort())); | 64 | connect(logger,SIGNAL(aborted()),voicecreator,SLOT(abort())); |
65 | voicecreator->createVoiceFile(); | 65 | voicecreator->createVoiceFile(); |
66 | } | 66 | } |