Main Page Modules Namespace List Class Hierarchy Compound List File List Namespace Members Compound Members Related Pages
KDoubleValidator Class Reference
A locale-aware QDoubleValidator.
More...
#include <knumvalidator.h>
List of all members.
Detailed Description
A locale-aware QDoubleValidator.
KDoubleValidator extends QDoubleValidator to be locale-aware. That means that - subject to not being disabled - KLocale::decimalPoint(), KLocale::thousandsSeparator() and KLocale::positiveSign() and KLocale::negativeSign() are respected.
- Author:
-
Marc Mutz <mutz@kde.org>
- Version:
-
- Id:
-
knumvalidator.h,v 1.11.2.1 2002/12/29 15:50:19 buis Exp
- See also:
-
KIntValidator
- Since:
-
3.1
Definition at line 178 of file knumvalidator.h.
Constructor & Destructor Documentation
| KDoubleValidator::KDoubleValidator |
( |
QObject * |
parent, |
|
|
const char * |
name = 0 |
|
) |
|
|
|
|
Constuct a locale-aware KDoubleValidator with default range (whatever QDoubleValidator uses for that) and parent parent |
| KDoubleValidator::KDoubleValidator |
( |
double |
bottom, |
|
|
double |
top, |
|
|
int |
decimals, |
|
|
QObject * |
parent, |
|
|
const char * |
name = 0 |
|
) |
|
|
|
|
Constuct a locale-aware KDoubleValidator for range [bottom,@p top] and a precision of decimals decimals after the decimal point. |
| virtual KDoubleValidator::~KDoubleValidator |
( |
|
) |
[virtual] |
|
Member Function Documentation
| bool KDoubleValidator::acceptLocalizedNumbers |
( |
|
) |
|
|
|
|
- Returns:
-
whether localized numbers are accepted (default: true)
|
| void KDoubleValidator::setAcceptLocalizedNumbers |
( |
bool |
accept |
) |
|
|
|
|
Sets whether to accept localized numbers (default: true) |
| virtual QValidator::State KDoubleValidator::validate |
( |
QString & |
input, |
|
|
int & |
pos |
|
) |
const [virtual] |
|
|
|
Overloaded for internal reasons. The API is not affected. |
The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:11 2003 for kdelibs by
1.2.18