summaryrefslogtreecommitdiffstats
path: root/examples/speech/hello_speak/mainwindow.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix QtSpeech example querying locales before initialisingJani Korteniemi2022-02-041-2/+12
| | | | | | | | | Added separate function for handling the query locales, which is executed when QTextToSpeech object is ready. Task-number: QTBUG-66034 Change-Id: I2b0fa69f9e66a0d6be65b1a221ab024a2d6700b5 Reviewed-by: Rami Potinkara <rami.potinkara@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Use nullptr instead of 0 in examplePaul Wicking2020-08-151-1/+1
| | | | | | | | | Fixes: QTBUG-86059 Change-Id: Ifffad0a0767387c92325143a94700d8b5bff5600 Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io> Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io> (cherry picked from commit aec9bb44af76b5e63afec151a36d057fa738aca0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Eradicate Q_FOREACH loops and mark the module free of themMarc Mutz2019-06-191-4/+5
| | | | | | | | | | (and of Java-style iterators). Q_FOREACH is scheduled for deprecation, or at the very least banned from use in Qt code. Change-Id: Ic9cb269fb4dc27d00d80d0a956cef4a7e1136544 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
* Fix outdated FDL license headerv5.9.3Kai Koehne2017-10-171-3/+13
| | | | | | Change-Id: I25a965785799173daddbebe95c970e6db9e50de1 Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
* hello_speak example: Fix enum value used in boolean context5.8Marc Mutz2017-03-221-1/+1
| | | | | | | | | | | | | Forgot to compare to 'state'. Found by GCC 7: qt5/qtspeech/examples/speech/hello_speak/mainwindow.cpp:104:82: warning: enum constant in boolean context [-Wint-in-bool-context] ui.stopButton->setEnabled(state == QTextToSpeech::Speaking || QTextToSpeech::Paused); ^~~~~~ Change-Id: Ie1e62b32586b21739df50e77b15135be040a6e6c Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* Align volume with qtmultimedia and others: 0.0 to 1.0Frederik Gladhorn2016-05-061-2/+7
| | | | | Change-Id: I0fe28819d6e7be48ddb587c21435f6be329f8ec5 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
* Revert "Add engine parameters in QTextToSpeech constructor"Frederik Gladhorn2016-04-131-1/+1
| | | | | | | | | | Having string based parameter passing is not Qt style, let's add getters and setters as needed. This reverts commit ca8768b90c07bff5804b1fbb704041a4472f65e9. Change-Id: Iff8edec13ac27371a116ed17f66cf90ab3a8f257 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
* Fix volume/rate slider setting in exampleFrederik Gladhorn2016-04-081-1/+1
| | | | | Change-Id: I7903c2039e2de0fadcdcbcb5aaa7a5a6321bf56a Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
* Improvements for the TTS example applicationTuomas Tuononen2016-04-051-1/+6
| | | | | | | | | | | - Remove double initialization of the default engine on startup - Preserve volume, pitch and speech rate when the engine changes - Enable QTextToSpeech log output Change-Id: I87e197315570c65e2dee9c66fde7eabd729f93f2 Reviewed-by: Jeremy Whiting <jpwhiting@kde.org> Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
* Show language name and country in Language combo box for QLocale.Jeremy Whiting2016-04-051-1/+4
| | | | | | Change-Id: I16e1c6ffeea481dec314e8c8122abfd3ecd24822 Reviewed-by: Tuomas Tuononen <tuomas.tuononen@code-q.fi> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
* QTextToSpeech: QObject *parent ctor args go lastMarc Mutz2016-03-041-1/+1
| | | | | | | | | | | | | | | | | | | | This is one of the deepest and most long-standing Qt API design patterns: subclasses add ctor args _at the front_, not at the back. To compensate the slight SC breakage, add an overloaded ctor that only takes QObject *parent (also a Qt API pattern worth following), so the common case of new QTextToSpeech(this) continues to work. Change-Id: I7253abada1355e53e9817914abd80e8af17ce429 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com> Reviewed-by: Jeremy Whiting <jpwhiting@kde.org> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
* Add engine selection in the TTS example applicationTuomas Tuononen2015-10-161-29/+48
| | | | | | | | - Support for plug-in engines Change-Id: I9a4a1a1ceb45849b6a39dbf1473e6f9badf5d1a6 Reviewed-by: Jeremy Whiting <jpwhiting@kde.org> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
* Doc: Moved the examples to examples/speechVenugopal Shivashankar2015-08-221-0/+140
With the earlier directory structure of examples/widgets, the speech examples would end up in the widgets directory along with other Qt Widgets examples in the Qt binary pkg. Change-Id: Ib9ad0826e23c493a4fc5b1d1e7acf9addad3be65 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>