QGIS API Documentation 3.37.0-Master (fdefdf9c27f)
Public Member Functions | List of all members
QgsRecentCoordinateReferenceSystemsProxyModel Class Reference

A sort/filter proxy model for recent coordinate reference systems. More...

#include <qgsrecentcoordinatereferencesystemsmodel.h>

Inheritance diagram for QgsRecentCoordinateReferenceSystemsProxyModel:
Inheritance graph
[legend]

Public Member Functions

 QgsRecentCoordinateReferenceSystemsProxyModel (QObject *parent=nullptr, int subclassColumnCount=1)
 Constructor for QgsRecentCoordinateReferenceSystemsProxyModel, with the given parent object. More...
 
QgsCoordinateReferenceSystem crs (const QModelIndex &index) const
 Returns the CRS for the corresponding index. More...
 
bool filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const override
 
QgsCoordinateReferenceSystemProxyModel::Filters filters () const
 Returns any filters that affect how CRS are filtered. More...
 
QgsRecentCoordinateReferenceSystemsModelrecentCoordinateReferenceSystemsModel ()
 Returns the underlying source model. More...
 
const QgsRecentCoordinateReferenceSystemsModelrecentCoordinateReferenceSystemsModel () const
 Returns the underlying source model. More...
 
void setFilterDeprecated (bool filter)
 Sets whether deprecated CRS should be filtered from the results. More...
 
void setFilters (QgsCoordinateReferenceSystemProxyModel::Filters filters)
 Set filters that affect how CRS are filtered. More...
 
void setFilterString (const QString &filter)
 Sets a filter string, such that only coordinate reference systems matching the specified string will be shown. More...
 

Detailed Description

A sort/filter proxy model for recent coordinate reference systems.

Since
QGIS 3.36

Definition at line 95 of file qgsrecentcoordinatereferencesystemsmodel.h.

Constructor & Destructor Documentation

◆ QgsRecentCoordinateReferenceSystemsProxyModel()

QgsRecentCoordinateReferenceSystemsProxyModel::QgsRecentCoordinateReferenceSystemsProxyModel ( QObject *  parent = nullptr,
int  subclassColumnCount = 1 
)
explicit

Constructor for QgsRecentCoordinateReferenceSystemsProxyModel, with the given parent object.

Definition at line 157 of file qgsrecentcoordinatereferencesystemsmodel.cpp.

Member Function Documentation

◆ crs()

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.

◆ filterAcceptsRow()

bool QgsRecentCoordinateReferenceSystemsProxyModel::filterAcceptsRow ( int  sourceRow,
const QModelIndex &  sourceParent 
) const
override

◆ filters()

QgsCoordinateReferenceSystemProxyModel::Filters QgsRecentCoordinateReferenceSystemsProxyModel::filters ( ) const
inline

Returns any filters that affect how CRS are filtered.

See also
setFilters()

Definition at line 137 of file qgsrecentcoordinatereferencesystemsmodel.h.

◆ recentCoordinateReferenceSystemsModel() [1/2]

QgsRecentCoordinateReferenceSystemsModel * QgsRecentCoordinateReferenceSystemsProxyModel::recentCoordinateReferenceSystemsModel ( )

Returns the underlying source model.

Definition at line 165 of file qgsrecentcoordinatereferencesystemsmodel.cpp.

◆ recentCoordinateReferenceSystemsModel() [2/2]

const QgsRecentCoordinateReferenceSystemsModel * QgsRecentCoordinateReferenceSystemsProxyModel::recentCoordinateReferenceSystemsModel ( ) const

Returns the underlying source model.

Note
Not available in Python bindings

Definition at line 170 of file qgsrecentcoordinatereferencesystemsmodel.cpp.

◆ setFilterDeprecated()

void QgsRecentCoordinateReferenceSystemsProxyModel::setFilterDeprecated ( bool  filter)

Sets whether deprecated CRS should be filtered from the results.

Definition at line 184 of file qgsrecentcoordinatereferencesystemsmodel.cpp.

◆ setFilters()

void QgsRecentCoordinateReferenceSystemsProxyModel::setFilters ( QgsCoordinateReferenceSystemProxyModel::Filters  filters)

Set filters that affect how CRS are filtered.

Definition at line 175 of file qgsrecentcoordinatereferencesystemsmodel.cpp.

◆ setFilterString()

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.


The documentation for this class was generated from the following files: