The QgsMapLayerProxyModel class provides an easy to use model to display the list of layers in widgets.
More...
#include <qgsmaplayerproxymodel.h>
Detailed Description
The QgsMapLayerProxyModel class provides an easy to use model to display the list of layers in widgets.
- Note
- added in 2.3
Member Enumeration Documentation
- Enumerator:
RasterLayer |
|
NoGeometry |
|
PointLayer |
|
LineLayer |
|
PolygonLayer |
|
HasGeometry |
|
VectorLayer |
|
PluginLayer |
|
All |
|
Constructor & Destructor Documentation
QgsMapLayerProxyModel::QgsMapLayerProxyModel |
( |
QObject * |
parent = 0 | ) |
|
|
explicit |
QgsMapLayerProxModel creates a proxy model with a QgsMapLayerModel as source model.
It can be used to filter the layers list in a widget.
Member Function Documentation
bool QgsMapLayerProxyModel::filterAcceptsRow |
( |
int |
source_row, |
|
|
const QModelIndex & |
source_parent |
|
) |
| const |
const Filters& QgsMapLayerProxyModel::filters |
( |
| ) |
const |
|
inline |
bool QgsMapLayerProxyModel::lessThan |
( |
const QModelIndex & |
left, |
|
|
const QModelIndex & |
right |
|
) |
| const |
setFilters set flags that affect how layers are filtered
- Parameters
-
- Note
- added in 2.3
The documentation for this class was generated from the following files: