QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
|
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 115 of file qgsprovidersublayersdialog.cpp.
|
override |
Definition at line 232 of file qgsprovidersublayersdialog.cpp.
QString QgsProviderSublayersDialog::groupName | ( | ) | const |
Returns an appropriate name for the layer group.
Definition at line 284 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 242 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 257 of file qgsprovidersublayersdialog.cpp.
void QgsProviderSublayersDialog::setGroupName | ( | const QString & | groupNameIn | ) |
Sets an appropriate name for the layer group.
Definition at line 272 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 224 of file qgsprovidersublayersdialog.cpp.