17#ifndef QGSRECENTCOORDINATEREFERENCESYSTEMSMODEL_H
18#define QGSRECENTCOORDINATEREFERENCESYSTEMSMODEL_H
25#include <QAbstractItemModel>
27#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;
135 bool filterAcceptsRow(
int sourceRow,
const QModelIndex &sourceParent )
const override;
147 bool mFilterDeprecated =
false;
148 QString mFilterString;
Represents a coordinate reference system (CRS).
A model for display of recently used coordinate reference systems.
QgsRecentCoordinateReferenceSystemsModel(QObject *parent=nullptr, int subclassColumnCount=1)
Constructor for QgsRecentCoordinateReferenceSystemsModel, with the specified parent object.
CustomRole
Custom model roles.
void setFilters(QgsCoordinateReferenceSystemProxyModel::Filters filters)
Set filters that affect how CRS are filtered.
QgsCoordinateReferenceSystemProxyModel::Filters filters() const
Returns any filters that affect how CRS are filtered.
QgsRecentCoordinateReferenceSystemsProxyModel(QObject *parent=nullptr, int subclassColumnCount=1)
Constructor for QgsRecentCoordinateReferenceSystemsProxyModel, with the given parent object.
void setFilterString(const QString &filter)
Sets a filter string, such that only coordinate reference systems matching the specified string will ...
void setFilterDeprecated(bool filter)
Sets whether deprecated CRS should be filtered from the results.
QgsRecentCoordinateReferenceSystemsModel * recentCoordinateReferenceSystemsModel()
Returns the underlying source model.
#define SIP_MONKEYPATCH_SCOPEENUM_UNNEST(OUTSIDE_CLASS, FORMERNAME)
#define SIP_MONKEYPATCH_COMPAT_NAME(FORMERNAME)