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; }
86 virtual QString
comments()
const {
return QString(); }
112 Qgis::BrowserLayerType mLayerType;
114 QStringList mSupportedCRS;
116 QStringList mSupportFormats;
124 static QIcon iconForWkbType(
Qgis::WkbType type );
126 static QIcon iconPoint();
127 static QIcon iconLine();
128 static QIcon iconPolygon();
129 static QIcon iconTable();
130 static QIcon iconRaster();
131 static QIcon iconDefault();
133 static QIcon iconMesh();
135 static QIcon iconVectorTile();
137 static QIcon iconPointCloud();
139 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.
bool hasDragEnabled() const override
Returns true if the item may be dragged.
Base class for all map layer types.
QList< QgsMimeDataUtils::Uri > UriList