QGIS API Documentation 3.99.0-Master (21b3aa880ba)
Loading...
Searching...
No Matches
QgsFieldDomainDialog Class Reference

A dialog for configuration of the properties of a QgsFieldDomain. More...

#include <qgsfielddomainwidget.h>

Inheritance diagram for QgsFieldDomainDialog:

Public Slots

void accept () override

Public Member Functions

 QgsFieldDomainDialog (Qgis::FieldDomainType type, QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::WindowFlags())
 Constructor for QgsFieldDomainDialog for the given domain type, with the specified parent widget and window flags.
QgsFieldDomaincreateFieldDomain () const
 Creates a new field domain using the properties from the dialog.
void setFieldDomain (const QgsFieldDomain *domain)
 Sets the current field domain to show properties for in the dialog.
void setNameEditable (bool editable)
 Sets if name of the field domain is editable.

Detailed Description

A dialog for configuration of the properties of a QgsFieldDomain.

Since
QGIS 3.26

Definition at line 278 of file qgsfielddomainwidget.h.

Constructor & Destructor Documentation

◆ QgsFieldDomainDialog()

QgsFieldDomainDialog::QgsFieldDomainDialog ( Qgis::FieldDomainType type,
QWidget * parent = nullptr,
Qt::WindowFlags flags = Qt::WindowFlags() )
explicit

Constructor for QgsFieldDomainDialog for the given domain type, with the specified parent widget and window flags.

Definition at line 447 of file qgsfielddomainwidget.cpp.

Member Function Documentation

◆ accept

void QgsFieldDomainDialog::accept ( )
overrideslot

Definition at line 478 of file qgsfielddomainwidget.cpp.

◆ createFieldDomain()

QgsFieldDomain * QgsFieldDomainDialog::createFieldDomain ( ) const

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

Caller takes ownership of the returned object.

See also
setFieldDomain()

Definition at line 473 of file qgsfielddomainwidget.cpp.

◆ setFieldDomain()

void QgsFieldDomainDialog::setFieldDomain ( const QgsFieldDomain * domain)

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

See also
createFieldDomain()

Definition at line 468 of file qgsfielddomainwidget.cpp.

◆ setNameEditable()

void QgsFieldDomainDialog::setNameEditable ( bool editable)

Sets if name of the field domain is editable.

Since
QGIS 4.0

Definition at line 119 of file qgsfielddomainwidget.cpp.


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