15 #ifndef QGSVECTORTILEDATAITEMS_H
16 #define QGSVECTORTILEDATAITEMS_H
30 QgsVectorTileRootItem(
QgsDataItem *parent, QString name, QString path );
34 QVariant
sortKey()
const override {
return 8; }
39 class CORE_EXPORT QgsVectorTileLayerItem :
public QgsLayerItem
43 QgsVectorTileLayerItem(
QgsDataItem *parent, QString name, QString path,
const QString &encodedUri );
52 QString
name()
override;
A Collection that represents a root group of connections from a single data provider.
This is the interface for those who want to add custom data items to the browser tree.
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 dataProviderKey() const
Returns the data provider key (if the data item provider is associated with a data provider),...
virtual int capabilities() const =0
Returns combination of flags from QgsDataProvider::DataCapabilities.
virtual QString name()=0
Human-readable name of the provider name.
Base class for all items in the model.
virtual QVariant sortKey() const
Returns the sorting key for the item.
virtual QVector< QgsDataItem * > createChildren()
Create children.
Item that represents a layer that can be opened with one of the providers.