QGIS API Documentation 3.41.0-Master (cea29feecf2)
|
Dialog for selecting provider sublayers. More...
#include <qgsprovidersublayersdialog.h>
Signals | |
void | layersAdded (const QList< QgsProviderSublayerDetails > &layers) |
Emitted when sublayers selected from the dialog should be added to the project. | |
Public Member Functions | |
QgsProviderSublayersDialog (const QString &uri, const QString &providerKey, const QString &filePath, const QList< QgsProviderSublayerDetails > initialDetails=QList< QgsProviderSublayerDetails >(), const QList< Qgis::LayerType > &acceptableTypes=QList< Qgis::LayerType >(), QWidget *parent SIP_TRANSFERTHIS=nullptr, Qt::WindowFlags fl=Qt::WindowFlags()) | |
Constructor. | |
~QgsProviderSublayersDialog () override | |
QString | groupName () const |
Returns an appropriate name for the layer group. | |
QList< QgsProviderSublayerDetails > | selectedLayers () const |
Returns the list of selected layers. | |
QList< QgsProviderSublayerModel::NonLayerItem > | selectedNonLayerItems () const |
Returns the list of selected non-layer items (e.g. | |
void | setGroupName (const QString &groupNameIn) |
Sets an appropriate name for the layer group. | |
void | setNonLayerItems (const QList< QgsProviderSublayerModel::NonLayerItem > &items) |
Set list of non-layer items (e.g. | |
Dialog for selecting provider sublayers.
Definition at line 68 of file qgsprovidersublayersdialog.h.
QgsProviderSublayersDialog::QgsProviderSublayersDialog | ( | const QString & | uri, |
const QString & | providerKey, | ||
const QString & | filePath, | ||
const QList< QgsProviderSublayerDetails > | initialDetails = QList<QgsProviderSublayerDetails>() , |
||
const QList< Qgis::LayerType > & | acceptableTypes = QList<Qgis::LayerType>() , |
||
QWidget *parent | SIP_TRANSFERTHIS = nullptr , |
||
Qt::WindowFlags | fl = Qt::WindowFlags() |
||
) |
Constructor.
Definition at line 115 of file qgsprovidersublayersdialog.cpp.
|
override |
Definition at line 226 of file qgsprovidersublayersdialog.cpp.
QString QgsProviderSublayersDialog::groupName | ( | ) | const |
Returns an appropriate name for the layer group.
Definition at line 278 of file qgsprovidersublayersdialog.cpp.
|
signal |
Emitted when sublayers selected from the dialog should be added to the project.
QList< QgsProviderSublayerDetails > QgsProviderSublayersDialog::selectedLayers | ( | ) | const |
Returns the list of selected layers.
Definition at line 236 of file qgsprovidersublayersdialog.cpp.
QList< QgsProviderSublayerModel::NonLayerItem > QgsProviderSublayersDialog::selectedNonLayerItems | ( | ) | const |
Returns the list of selected non-layer items (e.g.
embedded QGIS project items).
Definition at line 251 of file qgsprovidersublayersdialog.cpp.
void QgsProviderSublayersDialog::setGroupName | ( | const QString & | groupNameIn | ) |
Sets an appropriate name for the layer group.
Definition at line 266 of file qgsprovidersublayersdialog.cpp.
void QgsProviderSublayersDialog::setNonLayerItems | ( | const QList< QgsProviderSublayerModel::NonLayerItem > & | items | ) |
Set list of non-layer items (e.g.
embedded QGIS project items).
Definition at line 218 of file qgsprovidersublayersdialog.cpp.