16 #ifndef QGSMAPLAYERPROXYMODEL_H
17 #define QGSMAPLAYERPROXYMODEL_H
19 #include <QSortFilterProxyModel>
39 HasGeometry = PointLayer | LineLayer | PolygonLayer,
40 VectorLayer = NoGeometry | HasGeometry,
42 All = RasterLayer | PolygonLayer | PluginLayer
44 Q_DECLARE_FLAGS( Filters, Filter )
63 const Filters&
filters()
const {
return mFilters; }
71 bool filterAcceptsRow(
int source_row,
const QModelIndex &source_parent )
const;
72 bool lessThan(
const QModelIndex &left,
const QModelIndex &right )
const;
75 Q_DECLARE_OPERATORS_FOR_FLAGS( QgsMapLayerProxyModel::Filters )
77 #endif // QGSMAPLAYERPROXYMODEL_H