class KIntValidator

QValidator for integers. More...

Definition#include <knumvalidator.h>
InheritsQValidator (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Members


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]