From 29c4a27a94d6f0dc9d91227d99bab7c2f55710db Mon Sep 17 00:00:00 2001 From: John Layt Date: Fri, 27 Jan 2012 19:04:42 +0000 Subject: SIC: QLocale: Remove base argument from conversion to number api As discussed on list and approved by Lars and Thiago. Remove the option to use QLocale to convert strings to non-decimal numbers as they are not localised and the api is available in QString. Change-Id: Ib810505ba86fb08ad23571b39f1520e86fde6787 Reviewed-by: Lars Knoll Reviewed-by: Thiago Macieira --- src/gui/util/qvalidator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/util') diff --git a/src/gui/util/qvalidator.cpp b/src/gui/util/qvalidator.cpp index faff264723..02552f5a53 100644 --- a/src/gui/util/qvalidator.cpp +++ b/src/gui/util/qvalidator.cpp @@ -422,7 +422,7 @@ QValidator::State QIntValidator::validate(QString & input, int&) const return Invalid; if (entered >= b && entered <= t) { - locale().toInt(input, &ok, 10); + locale().toInt(input, &ok); return ok ? Acceptable : Intermediate; } -- cgit v1.2.3