17#ifndef QGSRECENTCOORDINATEREFERENCESYSTEMSMODEL_H
18#define QGSRECENTCOORDINATEREFERENCESYSTEMSMODEL_H
25#include <QAbstractItemModel>
26#include <QSortFilterProxyModel>
61 Qt::ItemFlags flags(
const QModelIndex &index )
const override;
62 QVariant data(
const QModelIndex &index,
int role )
const override;
63 int rowCount(
const QModelIndex &parent = QModelIndex() )
const override;
64 int columnCount(
const QModelIndex & = QModelIndex() )
const override;
65 QModelIndex index(
int row,
int column,
const QModelIndex &parent = QModelIndex() )
const override;
66 QModelIndex parent(
const QModelIndex &index )
const override;
79 void recentCrsCleared();
83 QList< QgsCoordinateReferenceSystem > mCrs;
120 void setFilters( QgsCoordinateReferenceSystemProxyModel::Filters filters );
125 void setFilterDeprecated(
bool filter );
131 void setFilterString(
const QString &filter );
137 QgsCoordinateReferenceSystemProxyModel::Filters
filters()
const {
return mFilters; }
139 bool filterAcceptsRow(
int sourceRow,
const QModelIndex &sourceParent )
const override;
151 QgsCoordinateReferenceSystemProxyModel::Filters mFilters = QgsCoordinateReferenceSystemProxyModel::Filters();
152 bool mFilterDeprecated =
false;
153 QString mFilterString;
This class represents a coordinate reference system (CRS).
A model for display of recently used coordinate reference systems.
CustomRole
Custom model roles.
A sort/filter proxy model for recent coordinate reference systems.
QgsCoordinateReferenceSystemProxyModel::Filters filters() const
Returns any filters that affect how CRS are filtered.
#define SIP_MONKEYPATCH_SCOPEENUM_UNNEST(OUTSIDE_CLASS, FORMERNAME)
#define SIP_MONKEYPATCH_COMPAT_NAME(FORMERNAME)
const QgsCoordinateReferenceSystem & crs