class KDoubleValidator

# class KDoubleValidator | A locale-aware QDoubleValidator. More...
Definition | `#include <knumvalidator.h>`
Inherits | QDoubleValidator (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- KDoubleValidator ( QObject * parent, const char * name=0 )
- KDoubleValidator ( double bottom, double top, int decimals, QObject * parent, const char * name=0 )
- virtual ~KDoubleValidator ()
- virtual QValidator::State validate ( QString & input, int & pos ) const
- bool acceptLocalizedNumbers () const
- void setAcceptLocalizedNumbers ( bool accept )

## Detailed Description

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.

See also: KIntValidator

KDoubleValidator ( QObject * parent, const char * name=0 ) | ### KDoubleValidator

Constuct a locale-aware KDoubleValidator with default range (whatever QDoubleValidator uses for that) and parent `parent`

KDoubleValidator ( double bottom, double top, int decimals, QObject * parent, const char * name=0 ) | ### KDoubleValidator

Constuct a locale-aware KDoubleValidator for range [`bottom`,`top`] and a precision of `decimals` decimals after the decimal point.

~KDoubleValidator () | ### ~KDoubleValidator

[virtual]

Destructs the validator.

QValidator::State validate ( QString & input, int & pos ) | ### validate

[const virtual]

Reimplemented from QDoubleValidator.

bool acceptLocalizedNumbers () | ### acceptLocalizedNumbers

[const]

void setAcceptLocalizedNumbers ( bool accept ) | ### setAcceptLocalizedNumbers

- Version: $Id: knumvalidator.h,v 1.11.2.1 2002/12/29 15:50:19 buis Exp $
- Author: Marc Mutz
- Generated: root on macppc.ports.openbsd.org on Sat Sep 6 10:36:37 2003, using kdoc 2.0a54.