Main Page Modules Namespace List Class Hierarchy Compound List File List Namespace Members Compound Members Related Pages
KIntValidator Class Reference
#include <knumvalidator.h>
List of all members.
|
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 |
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.
- Author:
-
Glen Parker <glenebob@nwlink.com>
- Version:
-
0.0.1
Definition at line 42 of file knumvalidator.h.
Constructor & Destructor Documentation
| KIntValidator::KIntValidator |
( |
QWidget * |
parent, |
|
|
int |
base = 10, |
|
|
const char * |
name = 0 |
|
) |
|
|
|
|
Constuctor. Also sets the base value. |
| KIntValidator::KIntValidator |
( |
int |
bottom, |
|
|
int |
top, |
|
|
QWidget * |
parent, |
|
|
int |
base = 10, |
|
|
const char * |
name = 0 |
|
) |
|
|
|
|
Constructor. Also sets the minimum, maximum, and numeric base values. |
| virtual KIntValidator::~KIntValidator |
( |
|
) |
[virtual] |
|
Member Function Documentation
| virtual int KIntValidator::base |
( |
|
) |
[virtual] |
|
|
|
Returns the current numeric base. |
| virtual int KIntValidator::bottom |
( |
|
) |
[virtual] |
|
|
|
Returns the current minimum value allowed. |
| virtual void KIntValidator::fixup |
( |
QString & |
|
) |
const [virtual] |
|
|
|
Fixes the text if possible, providing a valid string. The parameter may be modified. |
| virtual void KIntValidator::setBase |
( |
int |
base |
) |
[virtual] |
|
|
|
Sets the numeric base value. |
| virtual void KIntValidator::setRange |
( |
int |
bottom, |
|
|
int |
top |
|
) |
[virtual] |
|
|
|
Sets the minimum and maximum values allowed. |
| virtual int KIntValidator::top |
( |
|
) |
[virtual] |
|
|
|
Returns the current maximum value allowed. |
| virtual State KIntValidator::validate |
( |
QString & |
, |
|
|
int & |
|
|
) |
const [virtual] |
|
|
|
Validates the text, and return the result. Does not modify the parameters. |
The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:16 2003 for kdelibs by
1.2.18