kexi
KexiUtils::LongLongValidator Class Reference
#include <longlongvalidator.h>
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 |
virtual void | fixup (QString &) const |
virtual void | setRange (Q_LLONG bottom, Q_LLONG top) |
virtual void | setBase (int base) |
virtual Q_LLONG | bottom () const |
virtual Q_LLONG | top () const |
virtual int | base () const |
Member Function Documentation
QValidator::State LongLongValidator::validate | ( | QString & | , | |
int & | ||||
) | const [virtual] |
Validates the text, and returns the result. Does not modify the parameters.
Definition at line 46 of file longlongvalidator.cpp.
void LongLongValidator::fixup | ( | QString & | ) | const [virtual] |
Fixes the text if possible, providing a valid string. The parameter may be modified.
Definition at line 81 of file longlongvalidator.cpp.
void LongLongValidator::setRange | ( | Q_LLONG | bottom, | |
Q_LLONG | top | |||
) | [virtual] |
void LongLongValidator::setBase | ( | int | base | ) | [virtual] |
Q_LLONG LongLongValidator::bottom | ( | ) | const [virtual] |
Q_LLONG LongLongValidator::top | ( | ) | const [virtual] |
int LongLongValidator::base | ( | ) | const [virtual] |
The documentation for this class was generated from the following files: