QValidator: Don't fallback to C Locale when validating input
authorJohn Layt <jlayt@kde.org>
Mon, 23 Jan 2012 22:34:09 +0000 (22:34 +0000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 31 Jan 2012 06:02:11 +0000 (07:02 +0100)
commit0436281771d5d47f0c80d0694f938bb8f737da4c
tree32438375b7ccc29bf42ee4e1742149c9b0dcc5d0
parent9c1f3bce4dd078bf395292e7b81035da4a2f91cf
QValidator: Don't fallback to C Locale when validating input

QIntValidator and QDoubleValidator used to accept C formatted input if
the input wasn't valid in the default locale.  This change removes this,
only the default locale is now used.

Change-Id: I8b2d8f9f3849abe3fcb5c12083aae542a76eaf90
Reviewed-by: Jonas Gastal <jgastal@profusion.mobi>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
dist/changes-5.0.0
src/gui/util/qvalidator.cpp
tests/auto/widgets/widgets/qdoublevalidator/tst_qdoublevalidator.cpp
tests/auto/widgets/widgets/qintvalidator/tst_qintvalidator.cpp