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" );
The Qgis class provides global constants for use throughout the application.
@ Populated
Children created.
Base class for all items in the model.
void setToolTip(const QString &msg)
virtual void setState(Qgis::BrowserItemState state)
Set item state.
QList< QgsMimeDataUtils::Uri > UriList
QgsMimeDataUtils::UriList mimeUris() const override
Returns mime URIs for the data item, most data providers will only return a single URI but some data ...
QgsProjectItem(QgsDataItem *parent, const QString &name, const QString &path, const QString &providerKey=QString())
A data item holding a reference to a QGIS project file.
QString uri
Identifier of the data source recognized by its providerKey.
QString name
Human readable name to be used e.g. in layer tree.
QString layerType
Type of URI.