![]() |
tuchulcha
0.10.1
Graphical Workflow Configuration Editor
|
Validator for prefix edit widgets. More...
#include <PrefixValidator.h>

Public Member Functions | |
| PrefixValidator (const QParameterFile &data, QObject *parent=0) | |
| default constructor More... | |
| virtual void | fixup (QString &input) const |
| Fix given input string. More... | |
| virtual QValidator::State | validate (QString &input, int &pos) const |
| Validate input string. More... | |
Private Attributes | |
| const QParameterFile & | _parameterFile |
| parent ParameterFile | |
It serves to check if an entered prefix is valid or not.
Definition at line 32 of file PrefixValidator.h.
| PrefixValidator::PrefixValidator | ( | const QParameterFile & | data, |
| QObject * | parent = 0 |
||
| ) |
| data | input parameter file |
| parent | parent object |
Definition at line 27 of file PrefixValidator.cpp.
|
virtual |
This function attempts to change input to be valid according to this validator's rules. Here, the first compatible prefix will be returned, if there is no such prefix, nothing happens.
| input | input string |
Definition at line 46 of file PrefixValidator.cpp.
References _parameterFile, and QParameterFile::getKeyList().
|
virtual |
This virtual function returns Invalid if input is invalid according to this validator's rules, Intermediate if it is likely that a little more editing will make the input acceptable (e.g. the user types "inp" when "input" is a valid prefix), and Acceptable if the input is valid.
| input | input string |
| pos | current editing position |
Definition at line 33 of file PrefixValidator.cpp.
References _parameterFile, and QParameterFile::getKeyList().