diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-05-10 08:54:54 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-05-10 09:44:24 +0200 |
commit | e9e2f3259a20c1dc91eebde9a50bda000162a61e (patch) | |
tree | 3f46905d208acaecd8fee050546269b753b20dcf /tests/auto | |
parent | 39ed76ecfcbdc56382fa88a61c2641e624aed909 (diff) |
QTextToSpeech: rename sayNext to enqueue
The text passed into the function is not said next, it's said at the end
of the currently pending texts.
Change-Id: Ic0ea885b65cdd8d7a055616fc9098d3c8cd3d397
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qtexttospeech/tst_qtexttospeech.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qtexttospeech/tst_qtexttospeech.cpp b/tests/auto/qtexttospeech/tst_qtexttospeech.cpp index 017eef5..9c9dac4 100644 --- a/tests/auto/qtexttospeech/tst_qtexttospeech.cpp +++ b/tests/auto/qtexttospeech/tst_qtexttospeech.cpp @@ -690,7 +690,7 @@ void tst_QTextToSpeech::sayMultiple() QFETCH(const QStringList, textList); for (qsizetype i = 0; i < textList.count(); ++i) { const QString &text = textList.at(i); - tts.sayNext(text); + tts.enqueue(text); if (!i) // wait for the engine to start speaking QTRY_COMPARE(tts.state(), QTextToSpeech::Speaking); } @@ -736,7 +736,7 @@ void tst_QTextToSpeech::pauseAtUtterance() for (qsizetype i = 0; i < textList.count(); ++i) { const QString &text = textList.at(i); - tts.sayNext(text); + tts.enqueue(text); if (!i) QTRY_COMPARE(tts.state(), QTextToSpeech::Speaking); } |