QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
15 #ifndef QGSVECTORTILEDATAITEMS_H
16 #define QGSVECTORTILEDATAITEMS_H
29 QgsVectorTileRootItem(
QgsDataItem *parent, QString name, QString path );
33 QVariant
sortKey()
const override {
return 8; }
38 class CORE_EXPORT QgsVectorTileLayerItem :
public QgsLayerItem
42 QgsVectorTileLayerItem(
QgsDataItem *parent, QString name, QString path,
const QString &encodedUri );
51 QString
name()
override;
60 #endif // QGSVECTORTILEDATAITEMS_H
virtual int capabilities() const =0
Returns combination of flags from QgsDataProvider::DataCapabilities.
virtual QVariant sortKey() const
Returns the sorting key for the item.
virtual QgsDataItem * createDataItem(const QString &path, QgsDataItem *parentItem)=0
Create a new instance of QgsDataItem (or nullptr) for given path and parent item.
virtual QString name()=0
Human-readable name of the provider name.
This is the interface for those who want to add custom data items to the browser tree.
virtual QString dataProviderKey() const
Returns the data provider key (if the data item provider is associated with a data provider),...
Item that represents a layer that can be opened with one of the providers.
A Collection that represents a root group of connections from a single data provider.
Base class for all items in the model.
virtual QVector< QgsDataItem * > createChildren()
Create children.