summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2021-08-23 13:12:01 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-09-01 12:06:56 +0000
commit3fd07467c9cfcb854d3ab220ddb7c4868bbb2f72 (patch)
treeb066944bffd1943d246308f8f709ca78aae336cb
parent1bef4351098ba7f7784102338d2bf2577c19f58a (diff)
Refine QLocale constructor documentation
Fix a typo and swap two sentences to give a clearer reading. Change-Id: I4a24ad5ba2e022edd121eb686de3638af2c242a6 Reviewed-by: Paul Wicking <paul.wicking@qt.io> (cherry picked from commit f98d9aa9da1f858cd499d7d6687fc137f40939f7) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/corelib/text/qlocale.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/corelib/text/qlocale.cpp b/src/corelib/text/qlocale.cpp
index 52d3938516..3db222d7c9 100644
--- a/src/corelib/text/qlocale.cpp
+++ b/src/corelib/text/qlocale.cpp
@@ -934,11 +934,11 @@ QLocale::QLocale(QLocalePrivate &dd)
\endlist
The separator can be either underscore \c{'_'} (U+005F, "low line") or a
- dash \c{'-'} (U+002D, "hyphen-minus"). If the string violates the locale
+ dash \c{'-'} (U+002D, "hyphen-minus"). If QLocale has no data for the
+ specified combination of language, script, and territory, then it uses the
+ most suitable match it can find instead. If the string violates the locale
format, or no suitable data can be found for the specified keys, the "C"
- locale is used instead. If QLocale has no data for the specified combination
- of language, script and territory, the it uses most suitable match it can
- find instead.
+ locale is used instead.
This constructor is much slower than QLocale(Language, Script, Territory) or
QLocale(Language, Territory).