diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2020-12-16 17:34:28 +0100 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2021-01-02 21:31:20 +0100 |
commit | f9d23bfd41d36ac1c39b31ff7d45ebe1597ed4f4 (patch) | |
tree | c429dde83656eecb7be256180328356fc8cc9a39 /rbutil/rbutilqt/base/voicefile.cpp | |
parent | 022bbad76281ee0f1cf72d6912eaa32c34273ef9 (diff) |
rbutil: Modernize connect() to new pointer-to-member syntax.
Change-Id: If737fe5a8f4ab9f83560511839fdc4ad8b187786
Diffstat (limited to 'rbutil/rbutilqt/base/voicefile.cpp')
-rw-r--r-- | rbutil/rbutilqt/base/voicefile.cpp | 14 |
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() getter = new HttpGet(this); getter->setFile(downloadFile); - connect(getter, SIGNAL(done(bool)), this, SLOT(downloadDone(bool))); - connect(getter, SIGNAL(dataReadProgress(int, int)), this, SIGNAL(logProgress(int, int))); - connect(this, SIGNAL(aborted()), getter, SLOT(abort())); + connect(getter, &HttpGet::done, this, &VoiceFileCreator::downloadDone); + connect(getter, &HttpGet::dataReadProgress, this, &VoiceFileCreator::logProgress); + connect(this, &VoiceFileCreator::aborted, getter, &HttpGet::abort); emit logItem(tr("Downloading voice info..."),LOGINFO); getter->getFile(genlangUrl); return true; @@ -284,10 +284,10 @@ void VoiceFileCreator::create(void) // set language for string correction. If not set no correction will be made. if(useCorrection) generator.setLang(m_lang); - connect(&generator,SIGNAL(done(bool)),this,SIGNAL(done(bool))); - connect(&generator,SIGNAL(logItem(QString,int)),this,SIGNAL(logItem(QString,int))); - connect(&generator,SIGNAL(logProgress(int,int)),this,SIGNAL(logProgress(int,int))); - connect(this,SIGNAL(aborted()),&generator,SLOT(abort())); + connect(&generator, &TalkGenerator::done, this, &VoiceFileCreator::done); + connect(&generator, &TalkGenerator::logItem, this, &VoiceFileCreator::logItem); + connect(&generator, &TalkGenerator::logProgress, this, &VoiceFileCreator::logProgress); + connect(this, &VoiceFileCreator::aborted, &generator, &TalkGenerator::abort); if(generator.process(&m_talkList, m_wavtrimThreshold) == TalkGenerator::eERROR) { |