summaryrefslogtreecommitdiffstats
path: root/src/corelib/doc/snippets/code
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2021-03-22 15:13:43 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2021-04-15 14:18:01 +0200
commitcbb4c59c38cca77133ea1b7a65004ee10bb021dc (patch)
treee44cb3132c51293c4b59153eff3b36dafb87a7b3 /src/corelib/doc/snippets/code
parentfad730b1641d803b5b0706837d840b80f94d4ecb (diff)
Make QLocale documentation more honest
Documented the fall-back process by which QLocale selects an actual locale based on what it is asked for. The prior documentation was wrong. In the process, removed some out-of-date claims about QString's toInt() and toDouble() caring about the default locale; and caught a few more cases (in \internal docs) of country -> territory. Fixes: QTBUG-90962 Change-Id: I5e7cfa66443c9335a71fb2048c3f2ebf7af64573 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/doc/snippets/code')
-rw-r--r--src/corelib/doc/snippets/code/src_corelib_text_qlocale.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/corelib/doc/snippets/code/src_corelib_text_qlocale.cpp b/src/corelib/doc/snippets/code/src_corelib_text_qlocale.cpp
index bfd847569b..58a7502346 100644
--- a/src/corelib/doc/snippets/code/src_corelib_text_qlocale.cpp
+++ b/src/corelib/doc/snippets/code/src_corelib_text_qlocale.cpp
@@ -59,10 +59,6 @@ int i = egyptian.toInt(s2);
//! [1]
-QLocale::setDefault(QLocale(QLocale::Hebrew, QLocale::Israel));
-QLocale hebrew; // Constructs a default QLocale
-QString s1 = hebrew.toString(15714.3, 'e');
-
bool ok;
double d;