|
libyui-qt
2.52.4
|


Public Member Functions | |
| QY2CharValidator (const QString &initialValidChars, QObject *parent=0, const char *name=0) | |
| Constructor. More... | |
| ~QY2CharValidator () | |
| Destructor. | |
| virtual State | validate (QString &input, int &pos) const |
| Check user input. More... | |
| void | setValidChars (const QString &newValidChars) |
| Set the valid input characters. More... | |
| QString | validChars () const |
| Retrieve the valid input characters. | |
Protected Attributes | |
| QString | _validChars |
Definition at line 34 of file QY2CharValidator.h.
| QY2CharValidator::QY2CharValidator | ( | const QString & | initialValidChars, |
| QObject * | parent = 0, |
||
| const char * | name = 0 |
||
| ) |
Constructor.
Create a validator object that checks for input characters being any one of 'validChars'. If this is empty, any input is accepted.
Definition at line 34 of file QY2CharValidator.cc.
|
inline |
Set the valid input characters.
If 'newValidChars' is empty, any input is accepted.
Definition at line 66 of file QY2CharValidator.h.
|
virtual |
Check user input.
Reimplemented from QValidator.
Definition at line 51 of file QY2CharValidator.cc.
