summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/base/voicefile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/base/voicefile.cpp')
-rw-r--r--rbutil/rbutilqt/base/voicefile.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/rbutil/rbutilqt/base/voicefile.cpp b/rbutil/rbutilqt/base/voicefile.cpp
index 98ab96b8ab..eabf7a721a 100644
--- a/rbutil/rbutilqt/base/voicefile.cpp
+++ b/rbutil/rbutilqt/base/voicefile.cpp
@@ -166,9 +166,9 @@ bool VoiceFileCreator::createVoiceFile()
166 getter = new HttpGet(this); 166 getter = new HttpGet(this);
167 getter->setFile(downloadFile); 167 getter->setFile(downloadFile);
168 168
169 connect(getter, SIGNAL(done(bool)), this, SLOT(downloadDone(bool))); 169 connect(getter, &HttpGet::done, this, &VoiceFileCreator::downloadDone);
170 connect(getter, SIGNAL(dataReadProgress(int, int)), this, SIGNAL(logProgress(int, int))); 170 connect(getter, &HttpGet::dataReadProgress, this, &VoiceFileCreator::logProgress);
171 connect(this, SIGNAL(aborted()), getter, SLOT(abort())); 171 connect(this, &VoiceFileCreator::aborted, getter, &HttpGet::abort);
172 emit logItem(tr("Downloading voice info..."),LOGINFO); 172 emit logItem(tr("Downloading voice info..."),LOGINFO);
173 getter->getFile(genlangUrl); 173 getter->getFile(genlangUrl);
174 return true; 174 return true;
@@ -284,10 +284,10 @@ void VoiceFileCreator::create(void)
284 // set language for string correction. If not set no correction will be made. 284 // set language for string correction. If not set no correction will be made.
285 if(useCorrection) 285 if(useCorrection)
286 generator.setLang(m_lang); 286 generator.setLang(m_lang);
287 connect(&generator,SIGNAL(done(bool)),this,SIGNAL(done(bool))); 287 connect(&generator, &TalkGenerator::done, this, &VoiceFileCreator::done);
288 connect(&generator,SIGNAL(logItem(QString,int)),this,SIGNAL(logItem(QString,int))); 288 connect(&generator, &TalkGenerator::logItem, this, &VoiceFileCreator::logItem);
289 connect(&generator,SIGNAL(logProgress(int,int)),this,SIGNAL(logProgress(int,int))); 289 connect(&generator, &TalkGenerator::logProgress, this, &VoiceFileCreator::logProgress);
290 connect(this,SIGNAL(aborted()),&generator,SLOT(abort())); 290 connect(this, &VoiceFileCreator::aborted, &generator, &TalkGenerator::abort);
291 291
292 if(generator.process(&m_talkList, m_wavtrimThreshold) == TalkGenerator::eERROR) 292 if(generator.process(&m_talkList, m_wavtrimThreshold) == TalkGenerator::eERROR)
293 { 293 {