diff options
author | John Layt <jlayt@kde.org> | 2012-01-27 19:04:42 +0000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-05 17:49:56 +0100 |
commit | 29c4a27a94d6f0dc9d91227d99bab7c2f55710db (patch) | |
tree | cd66bb046981558a18d999770df90201b3cb946a /src/gui/util | |
parent | 1e3833bed8a661ee8ae284188a23bd0ffc3bed85 (diff) | |
download | qtbase-29c4a27a94d6f0dc9d91227d99bab7c2f55710db.tar.gz |
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 <lars.knoll@nokia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/util')
-rw-r--r-- | src/gui/util/qvalidator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |