Reference format validator. More...
#include <refvalidator.h>
Public Member Functions | |
| RefValidator (QObject *parent, const char *name=0) | |
| void | fixup (QString &input) const |
| QValidator::State | validate (QString &input, int &pos) const |
Reference format validator.
Reference validator - checks if given String is valid Reference in given document Does validate only format, not if the reference exists (that would be too slow) Reference existence is validated on attempt to write it to the property
| gui::RefValidator::RefValidator | ( | QObject * | parent, | |
| const char * | name = 0 | |||
| ) |
Constructor for this validator
| parent | Parent object | |
| name | name of this validator (not used, except debugging) |
| void gui::RefValidator::fixup | ( | QString & | input | ) | const |
Try to "fix" the string to be valid. Does not guarantee that string will be valid after returning
| input | String to fix (reference) |
| QValidator::State gui::RefValidator::validate | ( | QString & | input, | |
| int & | pos | |||
| ) | const |
Try to validate the string as reference target
| input | String to validate (reference) | |
| pos | position of cursor (not changed) |
References debug::DBG_DBG, guiPrintDbg, gui::ivalid(), Q_OUT, and gui::valid().