|
| QgsBrowserModel (QObject *parent=nullptr) |
| Constructor for QgsBrowserModel, with the specified parent object. More...
|
|
| ~QgsBrowserModel () override |
|
bool | canFetchMore (const QModelIndex &parent) const override |
|
int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
|
Q_DECL_DEPRECATED void | connectItem (QgsDataItem *item) |
|
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
|
QgsDataItem * | dataItem (const QModelIndex &idx) const |
| Returns the data item at the specified index, or nullptr if no item exists at the index. More...
|
|
QMap< QString, QgsDirectoryItem * > | driveItems () const |
| Returns a map of the root drive items shown in the browser. More...
|
|
bool | dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override |
|
void | fetchMore (const QModelIndex &parent) override |
|
QModelIndex | findItem (QgsDataItem *item, QgsDataItem *parent=nullptr) const |
| Returns the model index corresponding to the specified data item. More...
|
|
QModelIndex | findPath (const QString &path, Qt::MatchFlag matchFlag=Qt::MatchExactly) |
| Returns index of item with given path. More...
|
|
QModelIndex | findUri (const QString &uri, QModelIndex index=QModelIndex()) |
| Returns index of layer item with given uri. More...
|
|
Qt::ItemFlags | flags (const QModelIndex &index) const override |
|
bool | hasChildren (const QModelIndex &parent=QModelIndex()) const override |
|
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
|
QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const override |
|
bool | initialized () const |
| Returns true if the model has been initialized. More...
|
|
QMimeData * | mimeData (const QModelIndexList &indexes) const override |
|
QStringList | mimeTypes () const override |
|
QModelIndex | parent (const QModelIndex &index) const override |
|
void | refresh (const QModelIndex &index=QModelIndex()) |
| Refresh item children. More...
|
|
void | refresh (const QString &path) |
| Refresh item specified by path. More...
|
|
QVector< QgsDataItem * > | rootItems () const |
| Returns the root items for the model. More...
|
|
int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
|
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override |
|