class QgsFieldValidator : QValidator { %TypeHeaderCode #include %End public: QgsFieldValidator( QObject *parent, const QgsField &field, QString dateFormat = "yyyy-MM-dd" ); ~QgsFieldValidator(); virtual State validate( QString &, int & ) const; virtual void fixup( QString & ) const; };