16 #ifndef QGSMAPLAYERPROXYMODEL_H 17 #define QGSMAPLAYERPROXYMODEL_H 19 #include <QSortFilterProxyModel> 20 #include <QStringList> 35 Q_PROPERTY(
QList<
QgsMapLayer*> exceptedLayerList READ exceptedLayerList WRITE setExceptedLayerList )
36 Q_PROPERTY(
QStringList exceptedLayerIds READ exceptedLayerIds WRITE setExceptedLayerIds )
46 HasGeometry = PointLayer | LineLayer | PolygonLayer,
47 VectorLayer = NoGeometry | HasGeometry,
50 All = RasterLayer | VectorLayer | PluginLayer
52 Q_DECLARE_FLAGS( Filters,
Filter )
71 const Filters&
filters()
const {
return mFilters; }
94 Q_DECLARE_OPERATORS_FOR_FLAGS( QgsMapLayerProxyModel::Filters )
96 #endif // QGSMAPLAYERPROXYMODEL_H virtual bool lessThan(const QModelIndex &left, const QModelIndex &right) const
QList< QgsMapLayer * > exceptedLayerList()
Get the list of maplayers which are excluded from the list.
Base class for all map layer types.
The QgsMapLayerModel class is a model to display layers in widgets.
The QgsMapLayerProxyModel class provides an easy to use model to display the list of layers in widget...
QgsMapLayerModel * sourceLayerModel() const
layerModel returns the QgsMapLayerModel used in this QSortFilterProxyModel
virtual bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const
const Filters & filters() const