|
QGIS API Documentation 3.99.0-Master (2fe06baccd8)
|
A widget for configuration of the properties of a QgsFieldDomain. More...
#include <qgsfielddomainwidget.h>

Signals | |
| void | validityChanged (bool isValid) |
| Emitted whenever the validity of the field domain configuration in the widget changes. | |
Public Member Functions | |
| QgsFieldDomainWidget (Qgis::FieldDomainType type, QWidget *parent=nullptr) | |
| Constructor for QgsFieldDomainWidget for the given domain type, with the specified parent widget. | |
| QgsFieldDomain * | createFieldDomain () const |
| Creates a new field domain using the properties from the widget. | |
| bool | isValid () const |
Returns true if the widget currently represents a valid field domain configuration. | |
| void | setFieldDomain (const QgsFieldDomain *domain) |
| Sets the current field domain to show properties for in the widget. | |
| void | setNameEditable (bool editable) |
| Sets if name of the field domain is editable. | |
A widget for configuration of the properties of a QgsFieldDomain.
Definition at line 212 of file qgsfielddomainwidget.h.
| QgsFieldDomainWidget::QgsFieldDomainWidget | ( | Qgis::FieldDomainType | type, |
| QWidget * | parent = nullptr ) |
Constructor for QgsFieldDomainWidget for the given domain type, with the specified parent widget.
Definition at line 354 of file qgsfielddomainwidget.cpp.
| QgsFieldDomain * QgsFieldDomainWidget::createFieldDomain | ( | ) | const |
Creates a new field domain using the properties from the widget.
Caller takes ownership of the returned object.
Definition at line 423 of file qgsfielddomainwidget.cpp.
| bool QgsFieldDomainWidget::isValid | ( | ) | const |
Returns true if the widget currently represents a valid field domain configuration.
Definition at line 435 of file qgsfielddomainwidget.cpp.
| void QgsFieldDomainWidget::setFieldDomain | ( | const QgsFieldDomain * | domain | ) |
Sets the current field domain to show properties for in the widget.
Definition at line 408 of file qgsfielddomainwidget.cpp.
| void QgsFieldDomainWidget::setNameEditable | ( | bool | editable | ) |
Sets if name of the field domain is editable.
Definition at line 83 of file qgsfielddomainwidget.cpp.
|
signal |
Emitted whenever the validity of the field domain configuration in the widget changes.