KDEUI
knumvalidator.cpp
Go to the documentation of this file.
184 KFloatValidator::KFloatValidator ( double bottom, double top, bool localeAware, QWidget * parent )
219 else if (newStr == QLatin1String(".") || (d->acceptLocalizedNumbers && newStr==KGlobal::locale()->decimalSymbol())) // another special case
bool acceptLocalizedNumbers() const
virtual double bottom() const
Returns the current minimum value allowed.
Definition: knumvalidator.cpp:278
void setAcceptLocalizedNumbers(bool b)
Sets the validator to be locale aware if is true.
Definition: knumvalidator.cpp:196
virtual int top() const
Returns the current maximum value allowed.
Definition: knumvalidator.cpp:144
bool acceptLocalizedNumbers() const
Returns true if the validator is locale aware.
Definition: knumvalidator.cpp:201
virtual int bottom() const
Returns the current minimum value allowed.
Definition: knumvalidator.cpp:139
QString decimalSymbol() const
virtual void setRange(int bottom, int top)
Sets the minimum and maximum values allowed.
Definition: knumvalidator.cpp:123
double readNumber(const QString &numStr, bool *ok=0) const
virtual void setRange(double bottom, double top)
Sets the minimum and maximum value allowed.
Definition: knumvalidator.cpp:269
KDoubleValidator(QObject *parent)
Constuct a locale-aware KDoubleValidator with default range (whatever QDoubleValidator uses for that)...
Definition: knumvalidator.cpp:302
virtual State validate(QString &, int &) const
Validates the text, and return the result.
Definition: knumvalidator.cpp:66
virtual State validate(QString &, int &) const
Validates the text, and return the result.
Definition: knumvalidator.cpp:206
virtual void fixup(QString &) const
Fixes the text if possible, providing a valid string.
Definition: knumvalidator.cpp:247
virtual void fixup(QString &) const
Fixes the text if possible, providing a valid string.
Definition: knumvalidator.cpp:101
KLocale * locale()
virtual QValidator::State validate(QString &input, int &pos) const
Overloaded for internal reasons.
Definition: knumvalidator.cpp:326
void setAcceptLocalizedNumbers(bool accept)
Sets whether to accept localized numbers (default: true)
Definition: knumvalidator.cpp:322
QString positiveSign() const
QString negativeSign() const
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
virtual double top() const
Returns the current maximum value allowed.
Definition: knumvalidator.cpp:283
QString thousandsSeparator() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:15 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:15 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.