QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
|
Dialog to add a tab or group of attributes. More...
#include <qgsaddtaborgroup.h>
Public Types | |
typedef QPair< QString, QTreeWidgetItem * > | ContainerPair |
Public Member Functions | |
QgsAddAttributeFormContainerDialog (QgsVectorLayer *lyr, const QList< ContainerPair > &existingContainerList, QTreeWidgetItem *currentTab=nullptr, QWidget *parent=nullptr) | |
constructor | |
void | accept () override |
Accepts the dialog. | |
int | columnCount () const |
Returns the column count. | |
Qgis::AttributeEditorContainerType | containerType () const |
Returns the container type. | |
QString | name () |
Returns the name of the tab or group. | |
QTreeWidgetItem * | parentContainerItem () |
Returns tree item corresponding to the selected parent container. | |
Protected Attributes | |
QList< ContainerPair > | mExistingContainers |
QgsVectorLayer * | mLayer = nullptr |
Dialog to add a tab or group of attributes.
Definition at line 39 of file qgsaddtaborgroup.h.
typedef QPair<QString, QTreeWidgetItem *> QgsAddAttributeFormContainerDialog::ContainerPair |
Definition at line 44 of file qgsaddtaborgroup.h.
QgsAddAttributeFormContainerDialog::QgsAddAttributeFormContainerDialog | ( | QgsVectorLayer * | lyr, |
const QList< ContainerPair > & | existingContainerList, | ||
QTreeWidgetItem * | currentTab = nullptr , |
||
QWidget * | parent = nullptr |
||
) |
constructor
Definition at line 29 of file qgsaddtaborgroup.cpp.
|
override |
Accepts the dialog.
Definition at line 95 of file qgsaddtaborgroup.cpp.
int QgsAddAttributeFormContainerDialog::columnCount | ( | ) | const |
Returns the column count.
Definition at line 85 of file qgsaddtaborgroup.cpp.
Qgis::AttributeEditorContainerType QgsAddAttributeFormContainerDialog::containerType | ( | ) | const |
QString QgsAddAttributeFormContainerDialog::name | ( | ) |
Returns the name of the tab or group.
Definition at line 68 of file qgsaddtaborgroup.cpp.
QTreeWidgetItem * QgsAddAttributeFormContainerDialog::parentContainerItem | ( | ) |
Returns tree item corresponding to the selected parent container.
Will be nullptr
when a new tab is created.
Definition at line 73 of file qgsaddtaborgroup.cpp.
|
protected |
Definition at line 79 of file qgsaddtaborgroup.h.
|
protected |
Definition at line 78 of file qgsaddtaborgroup.h.