2017-05-23 14:36:52 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgsbrowsertreeview.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsBrowserTreeView : QTreeView
|
2015-11-10 17:08:27 +11:00
|
|
|
{
|
2017-05-23 14:36:52 +02:00
|
|
|
%Docstring
|
|
|
|
The QgsBrowserTreeView class extends QTreeView with save/restore tree state functionality.
|
|
|
|
|
|
|
|
.. seealso:: QgsBrowserModel
|
|
|
|
.. versionadded:: 2.8
|
2015-11-10 17:08:27 +11:00
|
|
|
%End
|
|
|
|
|
2017-05-23 14:36:52 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsbrowsertreeview.h"
|
|
|
|
%End
|
2015-11-10 17:08:27 +11:00
|
|
|
public:
|
|
|
|
QgsBrowserTreeView( QWidget *parent /TransferThis/ = 0 );
|
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
virtual void setModel( QAbstractItemModel *model );
|
2017-06-09 17:49:41 +02:00
|
|
|
void setBrowserModel( QgsBrowserModel *model );
|
2017-06-12 17:22:55 +02:00
|
|
|
%Docstring
|
|
|
|
Set the browser model
|
|
|
|
%End
|
2017-06-09 17:49:41 +02:00
|
|
|
QgsBrowserModel *browserModel( );
|
|
|
|
%Docstring
|
2017-06-12 17:22:55 +02:00
|
|
|
Return the browser model
|
2017-06-09 17:49:41 +02:00
|
|
|
:rtype: QgsBrowserModel
|
|
|
|
%End
|
2017-05-03 07:45:22 +02:00
|
|
|
virtual void showEvent( QShowEvent *e );
|
|
|
|
virtual void hideEvent( QHideEvent *e );
|
2015-11-10 17:08:27 +11:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
bool hasExpandedDescendant( const QModelIndex &index ) const;
|
2017-05-23 14:36:52 +02:00
|
|
|
%Docstring
|
|
|
|
:rtype: bool
|
|
|
|
%End
|
2015-11-10 17:08:27 +11:00
|
|
|
|
2017-05-03 07:45:22 +02:00
|
|
|
void setSettingsSection( const QString §ion );
|
2015-11-10 17:08:27 +11:00
|
|
|
|
|
|
|
protected slots:
|
2017-05-03 07:45:22 +02:00
|
|
|
virtual void rowsInserted( const QModelIndex &parentIndex, int start, int end );
|
2017-05-23 14:36:52 +02:00
|
|
|
|
2015-11-10 17:08:27 +11:00
|
|
|
};
|
2017-05-23 14:36:52 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgsbrowsertreeview.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|