qt5base-lts/tests/auto/corelib
Kai Köhne f1465c621c QLocale: Allow direct conversion to language, country, and script codes
Currently the codes are only exposed in aggregated form, i.e. through
name(), bcp47Name(). There are use cases though where you are only
interested in either language, country, or script codes. One example
is in Qt Linguist.

This patch therefore exposes the static languageToCode(),
countryToCode(), scriptToCode() methods that were so far only available
in the private API also in the public API.

[ChangeLog][QtCore][QLocale] Added static languageToCode(),
countryToCode() scriptToCode() methods that convert enum values
to the respective ISO code strings.

Fixes: QTBUG-39542
Fixes: QTBUG-64942
Change-Id: Ib1d5c3293e2f53245ba4c1fc8159275bcb290080
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2021-01-18 15:52:31 +01:00
..
animation Remove the qmake project files 2021-01-07 15:32:28 +01:00
global Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
io QSettings: Add support for QMetaType::Float 2021-01-15 18:51:15 +01:00
itemmodels Make sure QMimeData is fully declared 2021-01-11 16:57:41 +01:00
kernel QVariant::fromValue<T>: require T to be copy constructible 2021-01-18 15:51:18 +01:00
mimetypes Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
plugin Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
serialization Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
text QLocale: Allow direct conversion to language, country, and script codes 2021-01-18 15:52:31 +01:00
thread Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
time Remove the qmake project files 2021-01-07 15:32:28 +01:00
tools QCache: when overwriting, store the new cost instead of the delta 2021-01-14 10:00:01 +00:00
CMakeLists.txt Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00