QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
22 const QString &path,
const QString &providerKey )
23 :
QgsDataItem(
Qgis::BrowserItemType::Project, parent, name, path, providerKey )
25 mIconName = QStringLiteral(
":/images/icons/qgis_icon.svg" );
33 u.
layerType = QStringLiteral(
"project" );
QgsMimeDataUtils::UriList mimeUris() const override
Returns mime URIs for the data item, most data providers will only return a single URI but some data ...
QString name
Human readable name to be used e.g. in layer tree.
QString uri
Identifier of the data source recognized by its providerKey.
QString layerType
Type of URI.
void setToolTip(const QString &msg)
QList< QgsMimeDataUtils::Uri > UriList
@ ItemRepresentsFile
Item's path() directly represents a file on disk (since QGIS 3.22)
@ Populated
Children created.
virtual void setState(Qgis::BrowserItemState state)
Set item state.
QString filePath
Path to file, if uri is associated with a file.
QgsProjectItem(QgsDataItem *parent, const QString &name, const QString &path, const QString &providerKey=QString())
A data item holding a reference to a QGIS project file.
The Qgis class provides global constants for use throughout the application.
virtual Qgis::BrowserItemCapabilities capabilities2() const
Returns the capabilities for the data item.
Base class for all items in the model.