QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
|
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 157 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 251 of file qgsrecentcoordinatereferencesystemsmodel.cpp.
|
override |
Definition at line 199 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 165 of file qgsrecentcoordinatereferencesystemsmodel.cpp.
const QgsRecentCoordinateReferenceSystemsModel * QgsRecentCoordinateReferenceSystemsProxyModel::recentCoordinateReferenceSystemsModel | ( | ) | const |
Returns the underlying source model.
Definition at line 170 of file qgsrecentcoordinatereferencesystemsmodel.cpp.
void QgsRecentCoordinateReferenceSystemsProxyModel::setFilterDeprecated | ( | bool | filter | ) |
Sets whether deprecated CRS should be filtered from the results.
Definition at line 184 of file qgsrecentcoordinatereferencesystemsmodel.cpp.
void QgsRecentCoordinateReferenceSystemsProxyModel::setFilters | ( | QgsCoordinateReferenceSystemProxyModel::Filters | filters | ) |
Set filters that affect how CRS are filtered.
Definition at line 175 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 193 of file qgsrecentcoordinatereferencesystemsmodel.cpp.