# class KIntValidator | QValidator for integers. More...
Definition | `#include <knumvalidator.h>`
Inherits | QValidator (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- KIntValidator ( QWidget * parent, int base = 10, const char * name = 0 )
- KIntValidator ( int bottom, int top, QWidget * parent, int base = 10, const char * name = 0 )
- virtual ~KIntValidator ()
- virtual State validate ( QString &, int & ) const
- virtual void fixup ( QString & ) const
- virtual void setRange ( int bottom, int top )
- virtual void setBase ( int base )
- virtual int bottom () const
- virtual int top () const
- virtual int base () const

#### Protected Members

- int _base
- int _min
- int _max

## Detailed Description

QValidator for integers.

This can be used by QLineEdit or subclass to provide validated text entry. Can be provided with a base value (default is 10), to allow the proper entry of hexadecimal, octal, or any other base numeric data.

KIntValidator ( QWidget * parent, int base = 10, const char * name = 0 ) | ### KIntValidator

Constuctor. Also sets the base value.

KIntValidator ( int bottom, int top, QWidget * parent, int base = 10, const char * name = 0 ) | ### KIntValidator

Constuctor. Also sets the minimum, maximum, and numeric base values.

~KIntValidator () | ### ~KIntValidator

[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 ( int bottom, int top ) | ### setRange

[virtual]

Set the minimum and maximum values allowed.

void setBase ( int base ) | ### setBase

[virtual]

Set the numeric base value.

int bottom () | ### bottom

[const virtual]

Return the current minimum value allowed.

int top () | ### top

[const virtual]

Return the current maximum value allowed.

int base () | ### base

[const virtual]

Return the current numeric base.

int _base | ### _base

[protected]

int _min | ### _min

[protected]

int _max | ### _max

[protected]

- Version: 0.0.1
- Author: Glen Parker <glenebob@nwlink.com>
- Generated: root@i386.ports.openbsd.org on Wed Apr 25 13:58:24 2001, using kdoc 2.0a53.