QGIS API Documentation  2.8.2-Wien
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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>

Public Member Functions

 QgsBrowserTreeView (QWidget *parent=0)
 ~QgsBrowserTreeView ()
bool hasExpandedDescendant (const QModelIndex &index) const
virtual void hideEvent (QHideEvent *e) override
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
QgsBrowserModel
Note
added in 2.8

Definition at line 29 of file qgsbrowsertreeview.h.

Constructor & Destructor Documentation

QgsBrowserTreeView::QgsBrowserTreeView ( QWidget *  parent = 0)

Definition at line 24 of file qgsbrowsertreeview.cpp.

QgsBrowserTreeView::~QgsBrowserTreeView ( )

Definition at line 30 of file qgsbrowsertreeview.cpp.

Member Function Documentation

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

Definition at line 132 of file qgsbrowsertreeview.cpp.

void QgsBrowserTreeView::hideEvent ( QHideEvent *  e)
overridevirtual

Definition at line 53 of file qgsbrowsertreeview.cpp.

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

Definition at line 150 of file qgsbrowsertreeview.cpp.

void QgsBrowserTreeView::setModel ( QAbstractItemModel *  model)
overridevirtual

Definition at line 34 of file qgsbrowsertreeview.cpp.

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

Definition at line 44 of file qgsbrowsertreeview.h.

void QgsBrowserTreeView::showEvent ( QShowEvent *  e)
overridevirtual

Definition at line 43 of file qgsbrowsertreeview.cpp.


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