QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
A sort/filter proxy model for recent coordinate reference systems. More...
#include <qgsrecentcoordinatereferencesystemsmodel.h>
Public Member Functions | |
QgsRecentCoordinateReferenceSystemsProxyModel (QObject *parent=nullptr, int subclassColumnCount=1) | |
Constructor for QgsRecentCoordinateReferenceSystemsProxyModel, with the given parent object. | |
QgsCoordinateReferenceSystem | crs (const QModelIndex &index) const |
Returns the CRS for the corresponding index. | |
bool | filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const override |
QgsCoordinateReferenceSystemProxyModel::Filters | filters () const |
Returns any filters that affect how CRS are filtered. | |
QgsRecentCoordinateReferenceSystemsModel * | recentCoordinateReferenceSystemsModel () |
Returns the underlying source model. | |
const QgsRecentCoordinateReferenceSystemsModel * | recentCoordinateReferenceSystemsModel () const |
Returns the underlying source model. | |
void | setFilterDeprecated (bool filter) |
Sets whether deprecated CRS should be filtered from the results. | |
void | setFilters (QgsCoordinateReferenceSystemProxyModel::Filters filters) |
Set filters that affect how CRS are filtered. | |
void | setFilterString (const QString &filter) |
Sets a filter string, such that only coordinate reference systems matching the specified string will be shown. | |
A sort/filter proxy model for recent coordinate reference systems.
Definition at line 95 of file qgsrecentcoordinatereferencesystemsmodel.h.
|
explicit |
Constructor for QgsRecentCoordinateReferenceSystemsProxyModel, with the given parent object.
Definition at line 158 of file qgsrecentcoordinatereferencesystemsmodel.cpp.
QgsCoordinateReferenceSystem QgsRecentCoordinateReferenceSystemsProxyModel::crs | ( | const QModelIndex & | index | ) | const |
Returns the CRS for the corresponding index.
Returns an invalid CRS if the index is not valid.
Definition at line 252 of file qgsrecentcoordinatereferencesystemsmodel.cpp.
|
override |
Definition at line 200 of file qgsrecentcoordinatereferencesystemsmodel.cpp.
|
inline |
Returns any filters that affect how CRS are filtered.
Definition at line 137 of file qgsrecentcoordinatereferencesystemsmodel.h.
QgsRecentCoordinateReferenceSystemsModel * QgsRecentCoordinateReferenceSystemsProxyModel::recentCoordinateReferenceSystemsModel | ( | ) |
Returns the underlying source model.
Definition at line 166 of file qgsrecentcoordinatereferencesystemsmodel.cpp.
const QgsRecentCoordinateReferenceSystemsModel * QgsRecentCoordinateReferenceSystemsProxyModel::recentCoordinateReferenceSystemsModel | ( | ) | const |
Returns the underlying source model.
Definition at line 171 of file qgsrecentcoordinatereferencesystemsmodel.cpp.
void QgsRecentCoordinateReferenceSystemsProxyModel::setFilterDeprecated | ( | bool | filter | ) |
Sets whether deprecated CRS should be filtered from the results.
Definition at line 185 of file qgsrecentcoordinatereferencesystemsmodel.cpp.
void QgsRecentCoordinateReferenceSystemsProxyModel::setFilters | ( | QgsCoordinateReferenceSystemProxyModel::Filters | filters | ) |
Set filters that affect how CRS are filtered.
Definition at line 176 of file qgsrecentcoordinatereferencesystemsmodel.cpp.
void QgsRecentCoordinateReferenceSystemsProxyModel::setFilterString | ( | const QString & | filter | ) |
Sets a filter string, such that only coordinate reference systems matching the specified string will be shown.
Definition at line 194 of file qgsrecentcoordinatereferencesystemsmodel.cpp.