# class KFloatValidator | QValidator for floating point entry. 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 )
- 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

#### Protected Members

- double _min
- double _max

## Detailed Description

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

Constuctor.

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

Constuctor. Also sets the minimum and maximum values.

~KFloatValidator () | ### ~KFloatValidator

[virtual]

Destructor.

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

[const virtual]

Validate the text, and return the result. Does not modify the paramaters.

Reimplemented from QValidator.

void fixup ( QString & ) | ### fixup

[const virtual]

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

Reimplemented from QValidator.

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

[virtual]

Set the minimum and maximum value allowed.

double bottom () | ### bottom

[const virtual]

Return the current minimum value allowed.

double top () | ### top

[const virtual]

Return the current maximum value allowed.

double _min | ### _min

[protected]

double _max | ### _max

[protected]

- Version: 0.0.1
- Author: Glen Parker <glenebob@nwlink.com>
- Generated: root@sparc.ports.openbsd.org on Wed May 2 09:37:45 2001, using kdoc 2.0a53.