QGIS API Documentation  3.17.0-Master (57c5a6fc26)
Public Types | Public Member Functions | Protected Attributes | List of all members
QgsAddTabOrGroup Class Reference

Dialog to add a tab or group of attributes. More...

#include <qgsaddtaborgroup.h>

Inheritance diagram for QgsAddTabOrGroup:
Inheritance graph
[legend]

Public Types

typedef QPair< QString, QTreeWidgetItem * > TabPair
 

Public Member Functions

 QgsAddTabOrGroup (QgsVectorLayer *lyr, const QList< TabPair > &tabList, QTreeWidgetItem *currentTab=nullptr, QWidget *parent=nullptr)
 constructor More...
 
void accept () override
 Accepts the dialog. More...
 
int columnCount () const
 Returns the column count. More...
 
QString name ()
 Returns the name of the tab or group. More...
 
QTreeWidgetItem * tab ()
 Returns tree item corresponding to the added tab. More...
 
bool tabButtonIsChecked ()
 Returns whether the tab button is checked. More...
 

Protected Attributes

QgsVectorLayermLayer = nullptr
 
QList< TabPairmTabs
 

Detailed Description

Dialog to add a tab or group of attributes.

Note
This class is not a part of public API
Since
QGIS 3.14

Definition at line 40 of file qgsaddtaborgroup.h.

Member Typedef Documentation

◆ TabPair

typedef QPair<QString, QTreeWidgetItem *> QgsAddTabOrGroup::TabPair

Definition at line 45 of file qgsaddtaborgroup.h.

Constructor & Destructor Documentation

◆ QgsAddTabOrGroup()

QgsAddTabOrGroup::QgsAddTabOrGroup ( QgsVectorLayer lyr,
const QList< TabPair > &  tabList,
QTreeWidgetItem *  currentTab = nullptr,
QWidget *  parent = nullptr 
)

constructor

Definition at line 28 of file qgsaddtaborgroup.cpp.

Member Function Documentation

◆ accept()

void QgsAddTabOrGroup::accept ( )
override

Accepts the dialog.

Definition at line 87 of file qgsaddtaborgroup.cpp.

◆ columnCount()

int QgsAddTabOrGroup::columnCount ( ) const

Returns the column count.

Definition at line 77 of file qgsaddtaborgroup.cpp.

◆ name()

QString QgsAddTabOrGroup::name ( )

Returns the name of the tab or group.

Definition at line 66 of file qgsaddtaborgroup.cpp.

◆ tab()

QTreeWidgetItem * QgsAddTabOrGroup::tab ( )

Returns tree item corresponding to the added tab.

Definition at line 71 of file qgsaddtaborgroup.cpp.

◆ tabButtonIsChecked()

bool QgsAddTabOrGroup::tabButtonIsChecked ( )

Returns whether the tab button is checked.

Definition at line 82 of file qgsaddtaborgroup.cpp.

Member Data Documentation

◆ mLayer

QgsVectorLayer* QgsAddTabOrGroup::mLayer = nullptr
protected

Definition at line 72 of file qgsaddtaborgroup.h.

◆ mTabs

QList< TabPair > QgsAddTabOrGroup::mTabs
protected

Definition at line 73 of file qgsaddtaborgroup.h.


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