|
QGIS API Documentation 4.2.0-Belém do Pará (ec9a7f91d0f)
|
A widget which displays information about vector layer fields, and allows some configuration of them. More...
#include <qgssourcefieldsproperties.h>

Signals | |
| void | toggleEditing () |
Public Member Functions | |
| QgsSourceFieldsProperties (QgsVectorLayer *layer, QWidget *parent=nullptr) | |
| bool | addAttribute (const QgsField &field) |
| Adds an attribute to the table (but does not commit it yet). | |
| void | apply () |
| void | init () |
| void | loadRows () |
| void | setRow (int row, int idx, const QgsField &field) |
Protected Types | |
| enum | AttrColumns { AttrIdCol = 0 , AttrNameCol , AttrAliasCol , AttrTypeCol , AttrTypeNameCol , AttrLengthCol , AttrPrecCol , AttrFieldDomainCol , AttrCommentCol , AttrConfigurationFlagsCol , AttrColCount } |
Protected Member Functions | |
| void | updateButtons () |
Protected Attributes | |
| QList< QTableWidgetItem * > | mIndexedWidgets |
| QgsVectorLayer * | mLayer = nullptr |
Friends | |
| class | QgsAttributesFormProperties |
A widget which displays information about vector layer fields, and allows some configuration of them.
Definition at line 51 of file qgssourcefieldsproperties.h.
|
protected |
| Enumerator | |
|---|---|
| AttrIdCol | |
| AttrNameCol | |
| AttrAliasCol | |
| AttrTypeCol | |
| AttrTypeNameCol | |
| AttrLengthCol | |
| AttrPrecCol | |
| AttrFieldDomainCol | |
| AttrCommentCol | |
| AttrConfigurationFlagsCol | |
| AttrColCount | |
Definition at line 81 of file qgssourcefieldsproperties.h.
|
explicit |
Definition at line 37 of file qgssourcefieldsproperties.cpp.
| bool QgsSourceFieldsProperties::addAttribute | ( | const QgsField & | field | ) |
Adds an attribute to the table (but does not commit it yet).
| field | the field to add |
false in case of a name conflict, true in case of success Definition at line 287 of file qgssourcefieldsproperties.cpp.
| void QgsSourceFieldsProperties::apply | ( | ) |
Definition at line 304 of file qgssourcefieldsproperties.cpp.
| void QgsSourceFieldsProperties::init | ( | ) |
Definition at line 97 of file qgssourcefieldsproperties.cpp.
| void QgsSourceFieldsProperties::loadRows | ( | ) |
Definition at line 102 of file qgssourcefieldsproperties.cpp.
| void QgsSourceFieldsProperties::setRow | ( | int | row, |
| int | idx, | ||
| const QgsField & | field ) |
Definition at line 221 of file qgssourcefieldsproperties.cpp.
|
signal |
|
protected |
Definition at line 437 of file qgssourcefieldsproperties.cpp.
|
friend |
Definition at line 121 of file qgssourcefieldsproperties.h.
|
protected |
Definition at line 79 of file qgssourcefieldsproperties.h.
|
protected |
Definition at line 74 of file qgssourcefieldsproperties.h.