QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsFieldValidator Class Reference

#include <qgsfieldvalidator.h>

Inheritance diagram for QgsFieldValidator:
Inheritance graph
[legend]

Public Member Functions

 QgsFieldValidator (QObject *parent, const QgsField &field, const QString &defaultValue, const QString &dateFormat="yyyy-MM-dd")
 
 ~QgsFieldValidator () override
 
QString dateFormat () const
 
void fixup (QString &s) const override
 
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 34 of file qgsfieldvalidator.cpp.

◆ ~QgsFieldValidator()

QgsFieldValidator::~QgsFieldValidator ( )
override

Definition at line 109 of file qgsfieldvalidator.cpp.

Member Function Documentation

◆ dateFormat()

QString QgsFieldValidator::dateFormat ( ) const
inline

Definition at line 44 of file qgsfieldvalidator.h.

◆ fixup()

void QgsFieldValidator::fixup ( QString &  s) const
override

Definition at line 179 of file qgsfieldvalidator.cpp.

◆ validate()

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

Definition at line 114 of file qgsfieldvalidator.cpp.


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