mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
20 lines
628 B
Plaintext
20 lines
628 B
Plaintext
|
|
class QgsFieldValidator : QValidator
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgsfieldvalidator.h>
|
|
%End
|
|
|
|
public:
|
|
QgsFieldValidator( QObject *parent, const QgsField &field, QString defaultValue, QString dateFormat = "yyyy-MM-dd" );
|
|
~QgsFieldValidator();
|
|
|
|
virtual State validate(QString & /In,Out/, int & /In,Out/) const = 0 /API=QString:2 - /;
|
|
virtual void fixup(QString &input /In,Out/) const /API=QString:2 - /;
|
|
|
|
QString dateFormat() const;
|
|
|
|
virtual State validate(QString & /Constrained/, int & /In,Out/) const = 0 /API=QString: - 2/;
|
|
virtual void fixup(QString & /Constrained/) const /API=QString: - 2/;
|
|
};
|