17#ifndef QGSRECENTCOORDINATEREFERENCESYSTEMSMODEL_H
18#define QGSRECENTCOORDINATEREFERENCESYSTEMSMODEL_H
25#include <QAbstractItemModel>
26#include <QSortFilterProxyModel>
60 Qt::ItemFlags flags(
const QModelIndex &index )
const override;
61 QVariant data(
const QModelIndex &index,
int role )
const override;
62 int rowCount(
const QModelIndex &parent = QModelIndex() )
const override;
63 int columnCount(
const QModelIndex & = QModelIndex() )
const override;
64 QModelIndex index(
int row,
int column,
const QModelIndex &parent = QModelIndex() )
const override;
65 QModelIndex parent(
const QModelIndex &index )
const override;
78 void recentCrsCleared();
81 QList<QgsCoordinateReferenceSystem> mCrs;
121 void setFilterDeprecated(
bool filter );
127 void setFilterString(
const QString &filter );
135 bool filterAcceptsRow(
int sourceRow,
const QModelIndex &sourceParent )
const override;
147 bool mFilterDeprecated =
false;
148 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