QGIS API Documentation  2.99.0-Master (ae4d26a)
Public Member Functions | List of all members
QgsFieldValidator Class Reference

#include <qgsfieldvalidator.h>

Inheritance diagram for QgsFieldValidator:
Inheritance graph

Public Member Functions

 QgsFieldValidator (QObject *parent, const QgsField &field, const QString &defaultValue, const QString &dateFormat="yyyy-MM-dd")
 ~QgsFieldValidator ()
QString dateFormat () const
virtual void fixup (QString &s) const override
virtual State validate (QString &s, int &i) const override

Detailed Description

Definition at line 33 of file qgsfieldvalidator.h.

Constructor & Destructor Documentation

◆ QgsFieldValidator()

QgsFieldValidator::QgsFieldValidator ( QObject *  parent,
const QgsField field,
const QString &  defaultValue,
const QString &  dateFormat = "yyyy-MM-dd" 

Definition at line 33 of file qgsfieldvalidator.cpp.

◆ ~QgsFieldValidator()

QgsFieldValidator::~QgsFieldValidator ( )

Definition at line 91 of file qgsfieldvalidator.cpp.

Member Function Documentation

◆ dateFormat()

QString QgsFieldValidator::dateFormat ( ) const

Definition at line 44 of file qgsfieldvalidator.h.

◆ fixup()

void QgsFieldValidator::fixup ( QString &  s) const

Definition at line 148 of file qgsfieldvalidator.cpp.

◆ validate()

QValidator::State QgsFieldValidator::validate ( QString &  s,
int &  i 
) const

Definition at line 96 of file qgsfieldvalidator.cpp.

The documentation for this class was generated from the following files: