16#ifndef QGSBROWSERTREEVIEW_H
17#define QGSBROWSERTREEVIEW_H
44 if ( qobject_cast<QgsBrowserTreeView *>( sipCpp ) !=
nullptr )
45 sipType = sipType_QgsBrowserTreeView;
57 void setModel( QAbstractItemModel *model )
override;
62 void showEvent( QShowEvent *e )
override;
63 void hideEvent( QHideEvent *e )
override;
66 bool hasExpandedDescendant(
const QModelIndex &index )
const;
87 void expandPath(
const QString &path );
91 void keyPressEvent( QKeyEvent *event )
override;
94 void rowsInserted(
const QModelIndex &parentIndex,
int start,
int end )
override;
97 QString mSettingsSection;
99 QStringList mExpandPaths;
103 QString expandedPathsKey()
const;
106 QStringList expandedPathsList(
const QModelIndex &index );
109 void expandTree(
const QModelIndex &index );
112 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)