16#ifndef QGSBROWSERTREEVIEW_H
17#define QGSBROWSERTREEVIEW_H
45 if ( qobject_cast<QgsBrowserTreeView *>( sipCpp ) !=
nullptr )
46 sipType = sipType_QgsBrowserTreeView;
58 void setModel( QAbstractItemModel *model )
override;
63 void showEvent( QShowEvent *e )
override;
64 void hideEvent( QHideEvent *e )
override;
67 bool hasExpandedDescendant(
const QModelIndex &index )
const;
88 void expandPath(
const QString &path );
92 void keyPressEvent( QKeyEvent *event )
override;
95 void rowsInserted(
const QModelIndex &parentIndex,
int start,
int end )
override;
98 QString mSettingsSection;
100 QStringList mExpandPaths;
104 QString expandedPathsKey()
const;
107 QStringList expandedPathsList(
const QModelIndex &index );
110 void expandTree(
const QModelIndex &index );
113 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.
void setSettingsSection(const QString §ion)
QgsBrowserGuiModel * browserModel()
Returns the browser model.
Base class for all items in the model.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)