diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-04-11 19:10:12 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-04-20 07:50:39 +0200 |
commit | 6f2c976fa47d797b97d0d444cd6f1db7be0da12d (patch) | |
tree | 5680200be88496547c5a44b6f9feca21ac55b90b /tests/auto | |
parent | 349c4a49be072bec420857055b46aca1bbf4ad0c (diff) |
Add QVoice::locale property
In every engine, the locale is a property of the voice, so store it in
the voice. This makes sense for applications that want to know which
language a voice speaks, and it allows us to simplify the code for
engines that used to store the current voice and locale: one is enough.
Change-Id: I9a01ebf2d5817accf820ac5dee6a7f24524195d7
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Reviewed-by: Jeremy Whiting <jpwhiting@kde.org>
Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qvoice/tst_qvoice.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qvoice/tst_qvoice.cpp b/tests/auto/qvoice/tst_qvoice.cpp index e76a099..0518a13 100644 --- a/tests/auto/qvoice/tst_qvoice.cpp +++ b/tests/auto/qvoice/tst_qvoice.cpp @@ -90,6 +90,7 @@ void tst_QVoice::basic() QVoice emptyVoice; for (const auto &voice : voices) { QCOMPARE(voice, voice); + QCOMPARE(voice.locale(), tts.locale()); QVERIFY(voice != emptyVoice); QVoice voiceCopy = voice; |