QGIS API Documentation  3.4.15-Madeira (e83d02e274)
Public Member Functions | Protected Slots | List of all members
QgsBrowserTreeView Class Reference

The QgsBrowserTreeView class extends QTreeView with save/restore tree state functionality. More...

#include <qgsbrowsertreeview.h>

Inheritance diagram for QgsBrowserTreeView:
Inheritance graph
[legend]

Public Member Functions

 QgsBrowserTreeView (QWidget *parent=nullptr)
 Constructor for QgsBrowserTreeView. More...
 
QgsBrowserModelbrowserModel ()
 Returns the browser model. More...
 
bool hasExpandedDescendant (const QModelIndex &index) const
 
void hideEvent (QHideEvent *e) override
 
void setBrowserModel (QgsBrowserModel *model)
 Sets the browser model. More...
 
void setModel (QAbstractItemModel *model) override
 
void setSettingsSection (const QString &section)
 
void showEvent (QShowEvent *e) override
 

Protected Slots

void rowsInserted (const QModelIndex &parentIndex, int start, int end) override
 

Detailed Description

The QgsBrowserTreeView class extends QTreeView with save/restore tree state functionality.

See also
QgsBrowserModel
Since
QGIS 2.8

Definition at line 32 of file qgsbrowsertreeview.h.

Constructor & Destructor Documentation

QgsBrowserTreeView::QgsBrowserTreeView ( QWidget *  parent = nullptr)

Constructor for QgsBrowserTreeView.

Definition at line 22 of file qgsbrowsertreeview.cpp.

Member Function Documentation

QgsBrowserModel* QgsBrowserTreeView::browserModel ( )
inline

Returns the browser model.

Definition at line 44 of file qgsbrowsertreeview.h.

bool QgsBrowserTreeView::hasExpandedDescendant ( const QModelIndex &  index) const

Definition at line 142 of file qgsbrowsertreeview.cpp.

void QgsBrowserTreeView::hideEvent ( QHideEvent *  e)
override

Definition at line 51 of file qgsbrowsertreeview.cpp.

void QgsBrowserTreeView::rowsInserted ( const QModelIndex &  parentIndex,
int  start,
int  end 
)
overrideprotectedslot

Definition at line 160 of file qgsbrowsertreeview.cpp.

void QgsBrowserTreeView::setBrowserModel ( QgsBrowserModel model)

Sets the browser model.

Definition at line 37 of file qgsbrowsertreeview.cpp.

void QgsBrowserTreeView::setModel ( QAbstractItemModel *  model)
override

Definition at line 29 of file qgsbrowsertreeview.cpp.

void QgsBrowserTreeView::setSettingsSection ( const QString &  section)
inline

Definition at line 52 of file qgsbrowsertreeview.h.

void QgsBrowserTreeView::showEvent ( QShowEvent *  e)
override

Definition at line 42 of file qgsbrowsertreeview.cpp.


The documentation for this class was generated from the following files: