QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
Loading...
Searching...
No Matches
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.
 
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.
 
QgsRecentCoordinateReferenceSystemsModelrecentCoordinateReferenceSystemsModel ()
 Returns the underlying source model.
 
const QgsRecentCoordinateReferenceSystemsModelrecentCoordinateReferenceSystemsModel () 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.
 

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 158 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 252 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 166 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 171 of file qgsrecentcoordinatereferencesystemsmodel.cpp.

◆ setFilterDeprecated()

void QgsRecentCoordinateReferenceSystemsProxyModel::setFilterDeprecated ( bool  filter)

Sets whether deprecated CRS should be filtered from the results.

Definition at line 185 of file qgsrecentcoordinatereferencesystemsmodel.cpp.

◆ setFilters()

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

Set filters that affect how CRS are filtered.

Definition at line 176 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 194 of file qgsrecentcoordinatereferencesystemsmodel.cpp.


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