QGIS API Documentation 3.41.0-Master (45a0abf3bec)
|
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 72 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 116 of file qgsprovidersublayersdialog.cpp.
|
override |
Definition at line 233 of file qgsprovidersublayersdialog.cpp.
QString QgsProviderSublayersDialog::groupName | ( | ) | const |
Returns an appropriate name for the layer group.
Definition at line 285 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 243 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 258 of file qgsprovidersublayersdialog.cpp.
void QgsProviderSublayersDialog::setGroupName | ( | const QString & | groupNameIn | ) |
Sets an appropriate name for the layer group.
Definition at line 273 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 225 of file qgsprovidersublayersdialog.cpp.