QGIS API Documentation  2.99.0-Master (f867b65)
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

Public Member Functions

 QgsBrowserTreeView (QWidget *parent=0)
QgsBrowserModelbrowserModel ()
 Return the browser model. More...
bool hasExpandedDescendant (const QModelIndex &index) const
virtual void hideEvent (QHideEvent *e) override
void setBrowserModel (QgsBrowserModel *model)
 Set the browser model. More...
virtual void setModel (QAbstractItemModel *model) override
void setSettingsSection (const QString &section)
virtual void showEvent (QShowEvent *e) override

Protected Slots

virtual 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
QGIS 2.8

Definition at line 31 of file qgsbrowsertreeview.h.

Constructor & Destructor Documentation

◆ QgsBrowserTreeView()

QgsBrowserTreeView::QgsBrowserTreeView ( QWidget *  parent = 0)

Definition at line 22 of file qgsbrowsertreeview.cpp.

Member Function Documentation

◆ browserModel()

QgsBrowserModel* QgsBrowserTreeView::browserModel ( )

Return the browser model.

Definition at line 41 of file qgsbrowsertreeview.h.

◆ hasExpandedDescendant()

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

Definition at line 142 of file qgsbrowsertreeview.cpp.

◆ hideEvent()

void QgsBrowserTreeView::hideEvent ( QHideEvent *  e)

Definition at line 51 of file qgsbrowsertreeview.cpp.

◆ rowsInserted

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

Definition at line 160 of file qgsbrowsertreeview.cpp.

◆ setBrowserModel()

void QgsBrowserTreeView::setBrowserModel ( QgsBrowserModel model)

Set the browser model.

Definition at line 37 of file qgsbrowsertreeview.cpp.

◆ setModel()

void QgsBrowserTreeView::setModel ( QAbstractItemModel *  model)

Definition at line 29 of file qgsbrowsertreeview.cpp.

◆ setSettingsSection()

void QgsBrowserTreeView::setSettingsSection ( const QString &  section)

Definition at line 49 of file qgsbrowsertreeview.h.

◆ showEvent()

void QgsBrowserTreeView::showEvent ( QShowEvent *  e)

Definition at line 42 of file qgsbrowsertreeview.cpp.

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