42 SIP_PYOBJECT __repr__();
44 QString
str = QStringLiteral(
"<QgsLayerItem: \"%1\" %2>" ).arg( sipCpp->name(), sipCpp->path() );
45 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
71 QString
uri()
const {
return mUri; }
92 virtual QString
comments()
const {
return QString(); }
118 Qgis::BrowserLayerType mLayerType;
120 QStringList mSupportedCRS;
122 QStringList mSupportFormats;
130 static QIcon iconForWkbType(
Qgis::WkbType type );
132 static QIcon iconPoint();
133 static QIcon iconLine();
134 static QIcon iconPolygon();
135 static QIcon iconTable();
136 static QIcon iconRaster();
137 static QIcon iconDefault();
139 static QIcon iconMesh();
141 static QIcon iconVectorTile();
143 static QIcon iconPointCloud();
145 virtual QString layerName()
const {
return name(); }
The Qgis class provides global constants for use throughout the application.
BrowserLayerType
Browser item layer types.
LayerType
Types of layers that can be added to a map.
The QgsAbstractDatabaseProviderConnection class provides common functionality for DB based connection...
Base class for all items in the model.
virtual QgsAbstractDatabaseProviderConnection * databaseConnection() const
For data items that represent a DB connection or one of its children, this method returns a connectio...
QString name() const
Returns the name of the item (the displayed text for the item).
virtual QgsMimeDataUtils::UriList mimeUris() const
Returns mime URIs for the data item, most data providers will only return a single URI but some data ...
virtual bool equal(const QgsDataItem *other)
Returns true if this item is equal to another item (by testing item type and path).
Item that represents a layer that can be opened with one of the providers.
QStringList supportedFormats() const
Returns the supported formats.
QString uri() const
Returns layer uri or empty string if layer cannot be created.
QStringList supportedCrs() const
Returns the supported CRS.
virtual QString comments() const
Returns comments of the layer.
QString providerKey() const
Returns provider key.
bool hasDragEnabled() const override
Returns true if the item may be dragged.
Base class for all map layer types.
QList< QgsMimeDataUtils::Uri > UriList