QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
A sort/filter proxy model for coordinate reference systems. More...
#include <qgscoordinatereferencesystemmodel.h>
Public Types | |
enum | Filter { FilterHorizontal = 1 << 1 , FilterVertical = 1 << 2 , FilterCompound = 1 << 3 } |
Available filter flags for filtering the model. More... | |
typedef QFlags< Filter > | Filters |
Public Member Functions | |
QgsCoordinateReferenceSystemProxyModel (QObject *parent=nullptr) | |
Constructor for QgsCoordinateReferenceSystemProxyModel, with the given parent object. | |
QgsCoordinateReferenceSystemModel * | coordinateReferenceSystemModel () |
Returns the underlying source model. | |
const QgsCoordinateReferenceSystemModel * | coordinateReferenceSystemModel () const |
Returns the underlying source model. | |
bool | filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const override |
QSet< QString > | filterAuthIds () const |
Returns the current filter list of auth ID strings, if set. | |
bool | filterDeprecated () const |
Returns whether deprecated CRS will be filtered from the results. | |
Filters | filters () const |
Returns any filters that affect how CRS are filtered. | |
QString | filterString () const |
Returns the current filter string, if set. | |
bool | lessThan (const QModelIndex &left, const QModelIndex &right) const override |
void | setFilterAuthIds (const QSet< QString > &filter) |
Sets a filter list of CRS auth ID strings, such that only coordinate reference systems matching the specified auth IDs will be shown. | |
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 coordinate reference systems.
Definition at line 309 of file qgscoordinatereferencesystemmodel.h.
typedef QFlags< Filter > QgsCoordinateReferenceSystemProxyModel::Filters |
Definition at line 322 of file qgscoordinatereferencesystemmodel.h.
Available filter flags for filtering the model.
Definition at line 316 of file qgscoordinatereferencesystemmodel.h.
|
explicit |
Constructor for QgsCoordinateReferenceSystemProxyModel, with the given parent object.
Definition at line 589 of file qgscoordinatereferencesystemmodel.cpp.
QgsCoordinateReferenceSystemModel * QgsCoordinateReferenceSystemProxyModel::coordinateReferenceSystemModel | ( | ) |
Returns the underlying source model.
Definition at line 601 of file qgscoordinatereferencesystemmodel.cpp.
const QgsCoordinateReferenceSystemModel * QgsCoordinateReferenceSystemProxyModel::coordinateReferenceSystemModel | ( | ) | const |
Returns the underlying source model.
Definition at line 606 of file qgscoordinatereferencesystemmodel.cpp.
|
override |
Definition at line 649 of file qgscoordinatereferencesystemmodel.cpp.
|
inline |
Returns the current filter list of auth ID strings, if set.
Definition at line 381 of file qgscoordinatereferencesystemmodel.h.
|
inline |
Returns whether deprecated CRS will be filtered from the results.
Definition at line 395 of file qgscoordinatereferencesystemmodel.h.
|
inline |
Returns any filters that affect how CRS are filtered.
Definition at line 351 of file qgscoordinatereferencesystemmodel.h.
|
inline |
Returns the current filter string, if set.
Definition at line 366 of file qgscoordinatereferencesystemmodel.h.
|
override |
Definition at line 719 of file qgscoordinatereferencesystemmodel.cpp.
void QgsCoordinateReferenceSystemProxyModel::setFilterAuthIds | ( | const QSet< QString > & | filter | ) |
Sets a filter list of CRS auth ID strings, such that only coordinate reference systems matching the specified auth IDs will be shown.
Definition at line 626 of file qgscoordinatereferencesystemmodel.cpp.
void QgsCoordinateReferenceSystemProxyModel::setFilterDeprecated | ( | bool | filter | ) |
Sets whether deprecated CRS should be filtered from the results.
Definition at line 640 of file qgscoordinatereferencesystemmodel.cpp.
void QgsCoordinateReferenceSystemProxyModel::setFilters | ( | QgsCoordinateReferenceSystemProxyModel::Filters | filters | ) |
Set filters that affect how CRS are filtered.
Definition at line 611 of file qgscoordinatereferencesystemmodel.cpp.
void QgsCoordinateReferenceSystemProxyModel::setFilterString | ( | const QString & | filter | ) |
Sets a filter string, such that only coordinate reference systems matching the specified string will be shown.
Definition at line 620 of file qgscoordinatereferencesystemmodel.cpp.