Make QTextStream use group separators in floating-point numbers
authorThiago Macieira <thiago.macieira@intel.com>
Tue, 1 Jul 2014 06:25:27 +0000 (23:25 -0700)
committerThiago Macieira <thiago.macieira@intel.com>
Sat, 5 Jul 2014 17:06:14 +0000 (19:06 +0200)
commit1d111091b5906bd9067d8c8510fc9a7fc2af10aa
treeb1dc6eaf996430036fc70f7d9b671c909de26a8b
parent8a031696a154fe115983372022c142db0e877962
Make QTextStream use group separators in floating-point numbers

Like for integers, this is activated only on QLocales other than C.

[ChangeLog][QtCore][QTextStream] QTextStream now uses group separators
when writing floating-point numbers when the locale is not the C locale.
The old behavior can be restored by setting QLocale::OmitGroupSeparator
on the locale.

Change-Id: Ie451b91017746c3a9b11b6211b2ddd09cd295cd2
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
src/corelib/io/qtextstream.cpp
tests/auto/corelib/io/qtextstream/tst_qtextstream.cpp