summaryrefslogtreecommitdiffstats
path: root/examples/speech/hello_speak/mainwindow.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-04-16 13:59:33 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-04-16 14:49:50 +0200
commit2ced63149f4cfd9694eb4a8817aca36bd1299879 (patch)
tree24c9a543fa3eb208b61f8d928edd71ea30f3bace /examples/speech/hello_speak/mainwindow.cpp
parent31953f04470f51493073ce8645c15e2cac2fbeb1 (diff)
Update dependencies
in an attempt to fix WASM build errors. Change-Id: Ic4c99996d4115554b684508b8889dc1ea8400ff3 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'examples/speech/hello_speak/mainwindow.cpp')
-rw-r--r--examples/speech/hello_speak/mainwindow.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/speech/hello_speak/mainwindow.cpp b/examples/speech/hello_speak/mainwindow.cpp
index 351249e..13ca29d 100644
--- a/examples/speech/hello_speak/mainwindow.cpp
+++ b/examples/speech/hello_speak/mainwindow.cpp
@@ -72,7 +72,7 @@ MainWindow::MainWindow(QWidget *parent)
connect(ui.pitch, &QSlider::valueChanged, this, &MainWindow::setPitch);
connect(ui.rate, &QSlider::valueChanged, this, &MainWindow::setRate);
connect(ui.volume, &QSlider::valueChanged, this, &MainWindow::setVolume);
- connect(ui.engine, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &MainWindow::engineSelected);
+ connect(ui.engine, &QComboBox::currentIndexChanged, this, &MainWindow::engineSelected);
}
void MainWindow::speak()
@@ -123,7 +123,7 @@ void MainWindow::engineSelected(int index)
m_speech = new QTextToSpeech(this);
else
m_speech = new QTextToSpeech(engineName, this);
- disconnect(ui.language, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &MainWindow::languageSelected);
+ disconnect(ui.language, &QComboBox::currentIndexChanged, this, &MainWindow::languageSelected);
ui.language->clear();
// Populate the languages combobox before connecting its signal.
const QVector<QLocale> locales = m_speech->availableLocales();
@@ -147,7 +147,7 @@ void MainWindow::engineSelected(int index)
connect(m_speech, &QTextToSpeech::stateChanged, this, &MainWindow::stateChanged);
connect(m_speech, &QTextToSpeech::localeChanged, this, &MainWindow::localeChanged);
- connect(ui.language, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &MainWindow::languageSelected);
+ connect(ui.language, &QComboBox::currentIndexChanged, this, &MainWindow::languageSelected);
localeChanged(current);
}
@@ -167,7 +167,7 @@ void MainWindow::localeChanged(const QLocale &locale)
QVariant localeVariant(locale);
ui.language->setCurrentIndex(ui.language->findData(localeVariant));
- disconnect(ui.voice, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &MainWindow::voiceSelected);
+ disconnect(ui.voice, &QComboBox::currentIndexChanged, this, &MainWindow::voiceSelected);
ui.voice->clear();
m_voices = m_speech->availableVoices();
@@ -179,5 +179,5 @@ void MainWindow::localeChanged(const QLocale &locale)
if (voice.name() == currentVoice.name())
ui.voice->setCurrentIndex(ui.voice->count() - 1);
}
- connect(ui.voice, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &MainWindow::voiceSelected);
+ connect(ui.voice, &QComboBox::currentIndexChanged, this, &MainWindow::voiceSelected);
}