16#ifndef QGSPROVIDERSUBLAYERSDIALOG_H
17#define QGSPROVIDERSUBLAYERSDIALOG_H
24#include "ui_qgsprovidersublayersdialogbase.h"
50 QVariant
data(
const QModelIndex &index,
int role )
const override;
51 Qt::ItemFlags
flags(
const QModelIndex &index )
const override;
56 void setGeometryTypesResolved(
bool resolved );
60 bool mGeometryTypesResolved =
false;
81 const QString &providerKey,
82 const QString &filePath,
83 const QList< QgsProviderSublayerDetails> initialDetails = QList< QgsProviderSublayerDetails>(),
84 const QList< Qgis::LayerType > &acceptableTypes = QList< Qgis::LayerType >(),
86 Qt::WindowFlags fl = Qt::WindowFlags() );
91 void setNonLayerItems(
const QList< QgsProviderSublayerModel::NonLayerItem > &items );
98 QList< QgsProviderSublayerDetails > selectedLayers()
const;
103 QList< QgsProviderSublayerModel::NonLayerItem > selectedNonLayerItems()
const;
108 QString groupName()
const;
113 void setGroupName(
const QString &groupNameIn );
120 void layersAdded(
const QList< QgsProviderSublayerDetails > &layers );
123 void treeSelectionChanged(
const QItemSelection &,
const QItemSelection & );
130 QPointer< QgsProviderSublayerTask > mTask;
132 bool mBlockSelectionChanges =
false;
A model for representing the sublayers present in a URI for the QgsProviderSublayersDialog.
A model for representing the sublayers present in a URI.
QVariant data(const QModelIndex &index, int role) const override
Qt::ItemFlags flags(const QModelIndex &index) const override
A QSortFilterProxyModel for filtering and sorting a QgsProviderSublayerModel.
A QgsTask which retrieves sublayer details for a URI.
Dialog for selecting provider sublayers.
void layersAdded(const QList< QgsProviderSublayerDetails > &layers)
Emitted when sublayers selected from the dialog should be added to the project.