QGIS API Documentation 3.43.0-Master (56aa1fd18d7)
|
Dialog to add a container for attribute widgets. More...
#include <qgsaddtaborgroup.h>
Public Types | |
typedef QPair< QString, QModelIndex > | ContainerPair |
Public Member Functions | |
QgsAddAttributeFormContainerDialog (QgsVectorLayer *layer, const QList< ContainerPair > &existingContainerList, QModelIndex ¤tItemIndex, 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 container. | |
QModelIndex | parentContainerItem () const |
Returns tree model index corresponding to the selected parent container. | |
Protected Attributes | |
QList< ContainerPair > | mExistingContainers |
QgsVectorLayer * | mLayer = nullptr |
Dialog to add a container for attribute widgets.
Definition at line 38 of file qgsaddtaborgroup.h.
typedef QPair<QString, QModelIndex> QgsAddAttributeFormContainerDialog::ContainerPair |
Definition at line 43 of file qgsaddtaborgroup.h.
QgsAddAttributeFormContainerDialog::QgsAddAttributeFormContainerDialog | ( | QgsVectorLayer * | layer, |
const QList< ContainerPair > & | existingContainerList, | ||
QModelIndex & | currentItemIndex, | ||
QWidget * | parent = nullptr |
||
) |
constructor
Definition at line 28 of file qgsaddtaborgroup.cpp.
|
override |
Accepts the dialog.
Definition at line 94 of file qgsaddtaborgroup.cpp.
int QgsAddAttributeFormContainerDialog::columnCount | ( | ) | const |
Returns the column count.
Definition at line 84 of file qgsaddtaborgroup.cpp.
Qgis::AttributeEditorContainerType QgsAddAttributeFormContainerDialog::containerType | ( | ) | const |
QString QgsAddAttributeFormContainerDialog::name | ( | ) |
Returns the name of the container.
Definition at line 67 of file qgsaddtaborgroup.cpp.
QModelIndex QgsAddAttributeFormContainerDialog::parentContainerItem | ( | ) | const |
Returns tree model index corresponding to the selected parent container.
Will be an invalid index when a new tab is created.
Definition at line 72 of file qgsaddtaborgroup.cpp.
|
protected |
Definition at line 79 of file qgsaddtaborgroup.h.
|
protected |
Definition at line 78 of file qgsaddtaborgroup.h.