A validator for integer values.
More...
#include <QDS_Validator.h>
This class provides validation of the strings entered by the user for datum with 'Integer' value type according to datum properties: minimum value, maximum value, filter.
Inherits QIntValidator.
QDS_IntegerValidator::QDS_IntegerValidator |
( |
QObject * |
p = 0 | ) |
|
Create empty validator object.
- Parameters
-
QDS_IntegerValidator::QDS_IntegerValidator |
( |
const QString & |
f, |
|
|
QObject * |
p = 0 |
|
) |
| |
Create validator object with filter string f.
- Parameters
-
f | filter string |
p | parent object |
QDS_IntegerValidator::~QDS_IntegerValidator |
( |
| ) |
|
|
virtual |
QValidator::State QDS_IntegerValidator::validate |
( |
QString & |
input, |
|
|
int & |
pos |
|
) |
| const |
|
virtual |
Reimplemented from QIntValidator.
Perform standard check by QIntValidator::validate(). If returned state is not QValidator::Invalid
and filter is specified then perform validation with filter by QRegExpValidator.
Returns QValidator::Invalid
if input is invalid according to this validator's rules, QValidator::Intermediate
if it is likely that a little more editing will make the input acceptable and QValidator::Acceptable
if the input is valid.
- Parameters
-
input | string being validated |
pos | cursor position |
- Returns
- validation state (
QValidator::State
)
References myFilter.
QString QDS_IntegerValidator::myFilter |
|
private |
The documentation for this class was generated from the following files: