16 #ifndef QGSBROWSERTREEVIEW_H 17 #define QGSBROWSERTREEVIEW_H 40 void setModel( QAbstractItemModel *model )
override;
45 void showEvent( QShowEvent *e )
override;
46 void hideEvent( QHideEvent *e )
override;
49 bool hasExpandedDescendant(
const QModelIndex &index )
const;
55 void rowsInserted(
const QModelIndex &parentIndex,
int start,
int end )
override;
58 QString mSettingsSection;
60 QStringList mExpandPaths;
64 QString expandedPathsKey()
const;
67 QStringList expandedPathsList(
const QModelIndex &index );
70 void expandTree(
const QModelIndex &index );
73 bool treeExpanded(
const QModelIndex &index );
77 #endif // QGSBROWSERTREEVIEW_H The QgsBrowserTreeView class extends QTreeView with save/restore tree state functionality.
void setSettingsSection(const QString §ion)
A model for showing available data sources and other items in a structured tree.
QgsBrowserModel * browserModel()
Returns the browser model.