QGIS API Documentation 3.37.0-Master (fdefdf9c27f)
Public Member Functions | List of all members
QgsRangeDomainWidget Class Reference

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

#include <qgsfielddomainwidget.h>

Inheritance diagram for QgsRangeDomainWidget:
Inheritance graph
[legend]

Public Member Functions

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

Additional Inherited Members

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

Detailed Description

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

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

Definition at line 94 of file qgsfielddomainwidget.h.

Constructor & Destructor Documentation

◆ QgsRangeDomainWidget()

QgsRangeDomainWidget::QgsRangeDomainWidget ( QWidget *  parent = nullptr)

Constructor for QgsRangeDomainWidget, with the specified parent widget.

Definition at line 40 of file qgsfielddomainwidget.cpp.

Member Function Documentation

◆ createFieldDomain()

QgsFieldDomain * QgsRangeDomainWidget::createFieldDomain ( const QString &  name,
const QString &  description,
QVariant::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 80 of file qgsfielddomainwidget.cpp.

◆ isValid()

bool QgsRangeDomainWidget::isValid ( ) const
overridevirtual

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

Implements QgsAbstractFieldDomainWidget.

Definition at line 87 of file qgsfielddomainwidget.cpp.

◆ setFieldDomain()

void QgsRangeDomainWidget::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 66 of file qgsfielddomainwidget.cpp.


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