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
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
QString toUpper() const
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
virtual QValidator::State validate(QString &input, int &pos) const
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 & remove(int position, int n)
double toDouble(bool *ok) const
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
int toInt(bool *ok, int base) const
bool isEmpty() const
QString trimmed() const
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
QString & replace(int position, int n, QChar after)
void setAcceptLocalizedNumbers(bool accept)
Sets whether to accept localized numbers (default: true)
Definition: knumvalidator.cpp:322
QString & setNum(short n, int base)
QString positiveSign() const
QString negativeSign() const
int length() 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-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.