22 : QSortFilterProxyModel( parent )
41 QModelIndex
index = sourceModel()->index( source_row, 0, source_parent );
82 QString leftId = sourceModel()->data( left ).toString();
83 QString rightId = sourceModel()->data( right ).toString();
84 return QString::localeAwareCompare( leftId, rightId ) < 0;
Base class for all map layer types.
QgsMapLayer::LayerType type() const
Get the type of the layer.
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const
bool lessThan(const QModelIndex &left, const QModelIndex &right) const
The QgsMapLayerModel class is a model to display layers in widgets.
The QgsMapLayerProxModel class provides an easy to use model to display the list of layers in widgets...
QGis::GeometryType geometryType() const
Returns point, line or polygon.
QgsMapLayerModel * mModel
bool hasGeometryType() const
Returns true if this is a geometry layer and false in case of NoGeometry (table only) or UnknownGeome...
QgsMapLayerProxyModel(QObject *parent=0)
QgsMapLayerProxModel creates a proxy model with a QgsMapLayerModel as source model.
Represents a vector layer which manages a vector based data sets.
QgsMapLayerProxyModel * setFilters(Filters filters)
setFilters set flags that affect how layers are filtered
const Filters & filters() const