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

A widget for configuration of the extended properties of a QgsCodedFieldDomain. More...

#include <qgsfielddomainwidget.h>

Inheritance diagram for QgsCodedFieldDomainWidget:
Inheritance graph
[legend]

Public Member Functions

 QgsCodedFieldDomainWidget (QWidget *parent=nullptr)
 Constructor for QgsCodedFieldDomainWidget, with the specified parent widget.
 
QgsFieldDomaincreateFieldDomain (const QString &name, const QString &description, QMetaType::Type fieldType) const override
 Creates a new field domain using the properties from the widget.
 
bool isValid () const override
 Returns true if the widget currently represents a valid field domain configuration.
 
void setFieldDomain (const QgsFieldDomain *domain) override
 Sets the current field domain to show properties for in the widget.
 
- Public Member Functions inherited from QgsAbstractFieldDomainWidget
 QgsAbstractFieldDomainWidget (QWidget *parent=nullptr)
 Constructor for QgsAbstractFieldDomainWidget, with the specified parent widget.
 
virtual ~QgsAbstractFieldDomainWidget ()
 

Additional Inherited Members

- Signals inherited from QgsAbstractFieldDomainWidget
void changed ()
 Emitted whenever the field domain configuration in the widget changes.
 

Detailed Description

A widget for configuration of the extended properties of a QgsCodedFieldDomain.

See also
QgsCodedFieldDomainWidget
Note
Not available in Python bindings
Since
QGIS 3.26

Definition at line 192 of file qgsfielddomainwidget.h.

Constructor & Destructor Documentation

◆ QgsCodedFieldDomainWidget()

QgsCodedFieldDomainWidget::QgsCodedFieldDomainWidget ( QWidget *  parent = nullptr)

Constructor for QgsCodedFieldDomainWidget, with the specified parent widget.

Definition at line 127 of file qgsfielddomainwidget.cpp.

Member Function Documentation

◆ createFieldDomain()

QgsFieldDomain * QgsCodedFieldDomainWidget::createFieldDomain ( const QString &  name,
const QString &  description,
QMetaType::Type  fieldType 
) const
overridevirtual

Creates a new field domain using the properties from the widget.

Caller takes ownership of the returned object.

See also
setFieldDomain()

Implements QgsAbstractFieldDomainWidget.

Definition at line 163 of file qgsfielddomainwidget.cpp.

◆ isValid()

bool QgsCodedFieldDomainWidget::isValid ( ) const
overridevirtual

Returns true if the widget currently represents a valid field domain configuration.

Implements QgsAbstractFieldDomainWidget.

Definition at line 168 of file qgsfielddomainwidget.cpp.

◆ setFieldDomain()

void QgsCodedFieldDomainWidget::setFieldDomain ( const QgsFieldDomain domain)
overridevirtual

Sets the current field domain to show properties for in the widget.

See also
createFieldDomain()

Implements QgsAbstractFieldDomainWidget.

Definition at line 154 of file qgsfielddomainwidget.cpp.


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