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;
56 void keyPressEvent( QKeyEvent *event )
override;
59 void rowsInserted(
const QModelIndex &parentIndex,
int start,
int end )
override;
62 QString mSettingsSection;
64 QStringList mExpandPaths;
68 QString expandedPathsKey()
const;
71 QStringList expandedPathsList(
const QModelIndex &index );
74 void expandTree(
const QModelIndex &index );
77 bool treeExpanded(
const QModelIndex &index );
A model for showing available data sources and other items in a structured tree.
The QgsBrowserTreeView class extends QTreeView with save/restore tree state functionality.
QgsBrowserGuiModel * browserModel()
Returns the browser model.
void setSettingsSection(const QString §ion)