summaryrefslogtreecommitdiff
path: root/utils/rbutilqt/createvoicewindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/rbutilqt/createvoicewindow.cpp')
-rw-r--r--utils/rbutilqt/createvoicewindow.cpp8
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
36void CreateVoiceWindow::change() 36void 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
47void CreateVoiceWindow::accept() 47void 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}