42 SIP_PYOBJECT __repr__();
44 QString
str = QStringLiteral(
"<QgsLayerItem: \"%1\" %2>" ).arg( sipCpp->name(), sipCpp->path() );
45 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
69 QString
uri()
const {
return mUri; }
90 virtual QString
comments()
const {
return QString(); }
116 Qgis::BrowserLayerType mLayerType;
118 QStringList mSupportedCRS;
120 QStringList mSupportFormats;
128 static QIcon iconForWkbType(
QgsWkbTypes::Type type );
130 static QIcon iconPoint();
131 static QIcon iconLine();
132 static QIcon iconPolygon();
133 static QIcon iconTable();
134 static QIcon iconRaster();
135 static QIcon iconDefault();
137 static QIcon iconMesh();
139 static QIcon iconVectorTile();
141 static QIcon iconPointCloud();
143 virtual QString layerName()
const {
return name(); }
The Qgis class provides global constants for use throughout the application.
BrowserLayerType
Browser item layer types.
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
Handles storage of information regarding WKB types and their properties.
QgsMapLayerType
Types of layers that can be added to a map.