KexiUtils::LongLongValidator Class Reference
#include <longlongvalidator.h>
Inheritance diagram for KexiUtils::LongLongValidator:

Detailed Description
A validator for longlong data type.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.
Based on KIntValidator code by Glen Parker <glenebob@nwlink.com>
Definition at line 38 of file longlongvalidator.h.
Public Member Functions | |
| LongLongValidator (QWidget *parent, int base=10, const char *name=0) | |
| LongLongValidator (Q_LLONG bottom, Q_LLONG top, QWidget *parent, int base=10, const char *name=0) | |
| virtual | ~LongLongValidator () |
| virtual State | validate (QString &, int &) const |
| Validates the text, and returns the result. Does not modify the parameters. | |
| virtual void | fixup (QString &) const |
| Fixes the text if possible, providing a valid string. The parameter may be modified. | |
| virtual void | setRange (Q_LLONG bottom, Q_LLONG top) |
| Sets the minimum and maximum values allowed. | |
| virtual void | setBase (int base) |
| Sets the numeric base value. | |
| virtual Q_LLONG | bottom () const |
| virtual Q_LLONG | top () const |
| virtual int | base () const |
Constructor & Destructor Documentation
|
||||||||||||||||
|
Definition at line 28 of file longlongvalidator.cpp. References setBase(). |
|
||||||||||||||||||||||||
|
Definition at line 35 of file longlongvalidator.cpp. References setBase(), and setRange(). |
|
|
Definition at line 42 of file longlongvalidator.cpp. |
Member Function Documentation
|
|
Definition at line 133 of file longlongvalidator.cpp. |
|
|
Definition at line 123 of file longlongvalidator.cpp. |
|
|
Fixes the text if possible, providing a valid string. The parameter may be modified.
Definition at line 81 of file longlongvalidator.cpp. References validate(). |
|
|
Sets the numeric base value.
Definition at line 114 of file longlongvalidator.cpp. Referenced by LongLongValidator(). |
|
||||||||||||
|
Sets the minimum and maximum values allowed.
Definition at line 105 of file longlongvalidator.cpp. Referenced by LongLongValidator(). |
|
|
Definition at line 128 of file longlongvalidator.cpp. |
|
||||||||||||
|
Validates the text, and returns the result. Does not modify the parameters.
Definition at line 46 of file longlongvalidator.cpp. Referenced by fixup(). |
The documentation for this class was generated from the following files:
