class KFloatValidator

# class KFloatValidator | @obsolete Use KDoubleValidator More...
Definition | `#include <knumvalidator.h>`
Inherits | QValidator (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- KFloatValidator ( QWidget * parent, const char * name = 0 )
- KFloatValidator ( double bottom, double top, QWidget * parent, const char * name = 0 )
- KFloatValidator ( double bottom, double top, bool localeAware, QWidget * parent, const char * name = 0 )
- virtual ~KFloatValidator ()
- virtual State validate ( QString &, int & ) const
- virtual void fixup ( QString & ) const
- virtual void setRange ( double bottom, double top )
- virtual double bottom () const
- virtual double top () const
- void setAcceptLocalizedNumbers (bool b)
- bool acceptLocalizedNumbers () const

## Detailed Description

@obsolete Use KDoubleValidator

QValidator for floating point entry. Extends the QValidator class to properly validate double numeric data. This can be used by QLineEdit or subclass to provide validated text entry.

KFloatValidator ( QWidget * parent, const char * name = 0 ) | ### KFloatValidator

Constructor.

KFloatValidator ( double bottom, double top, QWidget * parent, const char * name = 0 ) | ### KFloatValidator

Constructor. Also sets the minimum and maximum values.

KFloatValidator ( double bottom, double top, bool localeAware, QWidget * parent, const char * name = 0 ) | ### KFloatValidator

Constructor. Sets the validator to be locale aware if `localeAware` is true.

~KFloatValidator () | ### ~KFloatValidator

[virtual]

Destructs the validator.

State validate ( QString &, int & ) | ### validate

[const virtual]

Validates the text, and return the result. Does not modify the parameters.

void fixup ( QString & ) | ### fixup

[const virtual]

Fixes the text if possible, providing a valid string. The parameter may be modified.

Reimplemented from QValidator.

void setRange ( double bottom, double top ) | ### setRange

[virtual]

Sets the minimum and maximum value allowed.

double bottom () | ### bottom

[const virtual]

Returns the current minimum value allowed.

double top () | ### top

[const virtual]

Returns the current maximum value allowed.

void setAcceptLocalizedNumbers (bool b) | ### setAcceptLocalizedNumbers

Sets the validator to be locale aware if `is` true. In this case, the character KLocale::decimalSymbol() from the global locale is recognized as decimal separator.

bool acceptLocalizedNumbers () | ### acceptLocalizedNumbers

[const]

Returns true if the validator is locale aware.

See also: setAcceptLocalizedNumbers().

- Version: 0.0.1
- Author: Glen Parker
- Generated: root on macppc.ports.openbsd.org on Sat Sep 6 10:36:37 2003, using kdoc 2.0a54.