The QgsMapLayerComboBox class is a combo box which displays the list of layers.
More...
#include <qgsmaplayercombobox.h>
Public Slots |
void | setLayer (QgsMapLayer *layer) |
| setLayer set the current layer selected in the combo
|
Signals |
void | layerChanged (QgsMapLayer *layer) |
| layerChanged this signal is emitted whenever the currently selected layer changes
|
Public Member Functions |
| QgsMapLayerComboBox (QWidget *parent=0) |
| QgsMapLayerComboBox creates a combo box to dislpay the list of layers (currently in the registry).
|
QgsMapLayer * | currentLayer () const |
| currentLayer returns the current layer selected in the combo box
|
QgsMapLayerProxyModel::Filters | filters () const |
| currently used filter on list layers
|
void | setFilters (QgsMapLayerProxyModel::Filters filters) |
| setFilters allows fitering according to layer type and/or geometry type.
|
Properties |
QgsMapLayerProxyModel::Filters | filters |
Detailed Description
The QgsMapLayerComboBox class is a combo box which displays the list of layers.
- Note
- added in 2.3
Definition at line 30 of file qgsmaplayercombobox.h.
Constructor & Destructor Documentation
QgsMapLayerComboBox::QgsMapLayerComboBox |
( |
QWidget * |
parent = 0 | ) |
|
|
explicit |
Member Function Documentation
QgsMapLayer * QgsMapLayerComboBox::currentLayer |
( |
| ) |
const |
QgsMapLayerProxyModel::Filters QgsMapLayerComboBox::filters |
( |
| ) |
const |
|
inline |
void QgsMapLayerComboBox::indexChanged |
( |
int |
i | ) |
|
|
protectedslot |
void QgsMapLayerComboBox::layerChanged |
( |
QgsMapLayer * |
layer | ) |
|
|
signal |
layerChanged this signal is emitted whenever the currently selected layer changes
void QgsMapLayerComboBox::setFilters |
( |
QgsMapLayerProxyModel::Filters |
filters | ) |
|
setFilters allows fitering according to layer type and/or geometry type.
Definition at line 29 of file qgsmaplayercombobox.cpp.
void QgsMapLayerComboBox::setLayer |
( |
QgsMapLayer * |
layer | ) |
|
|
slot |
Property Documentation
QgsMapLayerProxyModel::Filters QgsMapLayerComboBox::filters |
|
readwrite |
The documentation for this class was generated from the following files: