summaryrefslogtreecommitdiffstats
path: root/examples/speech/hello_speak/mainwindow.cpp
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@theqtcompany.com>2016-04-08 16:17:14 +0200
committerFrederik Gladhorn <frederik.gladhorn@theqtcompany.com>2016-04-08 14:43:35 +0000
commit5c209ef946ea5edf9f173879419651dc694ba551 (patch)
tree0086e952e23deb9cc9b71a71d7dd22d2e005c1d3 /examples/speech/hello_speak/mainwindow.cpp
parentcdc38113b78b3f1190617c9588c028bede8bcd9f (diff)
Fix volume/rate slider setting in example
Change-Id: I7903c2039e2de0fadcdcbcb5aaa7a5a6321bf56a Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
Diffstat (limited to 'examples/speech/hello_speak/mainwindow.cpp')
-rw-r--r--examples/speech/hello_speak/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/speech/hello_speak/mainwindow.cpp b/examples/speech/hello_speak/mainwindow.cpp
index d22d931..9f25d37 100644
--- a/examples/speech/hello_speak/mainwindow.cpp
+++ b/examples/speech/hello_speak/mainwindow.cpp
@@ -120,7 +120,7 @@ void MainWindow::engineSelected(int index)
if (locale.name() == current.name())
current = locale;
}
- setRate(ui.volume->value());
+ setRate(ui.rate->value());
setPitch(ui.pitch->value());
m_speech->setVolume(ui.volume->value());
connect(ui.stopButton, &QPushButton::clicked, m_speech, &QTextToSpeech::stop);