17#ifndef QGSPROJECTITEM_H
18#define QGSPROJECTITEM_H
43 SIP_PYOBJECT __repr__();
45 QString str = QStringLiteral(
"<QgsProjectItem: \"%1\" %2>" ).arg( sipCpp->name(), sipCpp->path() );
46 sipRes = PyUnicode_FromString( str.toUtf8().constData() );
QgsDataItem(Qgis::BrowserItemType type, QgsDataItem *parent, const QString &name, const QString &path, const QString &providerKey=QString())
Constructor for QgsDataItem, with the specified parent item.
QString name() const
Returns the name of the item (the displayed text for the item).
QgsDataItem * parent() const
Gets item parent.
virtual QgsMimeDataUtils::UriList mimeUris() const
Returns mime URIs for the data item, most data providers will only return a single URI but some data ...
QString providerKey() const
Returns the provider key that created this item (e.g.
QList< QgsMimeDataUtils::Uri > UriList
QgsProjectItem(QgsDataItem *parent, const QString &name, const QString &path, const QString &providerKey=QString())
A data item holding a reference to a QGIS project file.
bool hasDragEnabled() const override
Returns true if the item may be dragged.