QGIS API Documentation 3.41.0-Master (af5edcb665c)
|
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 330 of file qgscoordinatereferencesystemmodel.h.
typedef QFlags< Filter > QgsCoordinateReferenceSystemProxyModel::Filters |
Definition at line 342 of file qgscoordinatereferencesystemmodel.h.
Available filter flags for filtering the model.
Definition at line 336 of file qgscoordinatereferencesystemmodel.h.
|
explicit |
Constructor for QgsCoordinateReferenceSystemProxyModel, with the given parent object.
Definition at line 596 of file qgscoordinatereferencesystemmodel.cpp.
QgsCoordinateReferenceSystemModel * QgsCoordinateReferenceSystemProxyModel::coordinateReferenceSystemModel | ( | ) |
Returns the underlying source model.
Definition at line 608 of file qgscoordinatereferencesystemmodel.cpp.
const QgsCoordinateReferenceSystemModel * QgsCoordinateReferenceSystemProxyModel::coordinateReferenceSystemModel | ( | ) | const |
Returns the underlying source model.
Definition at line 613 of file qgscoordinatereferencesystemmodel.cpp.
|
override |
Definition at line 656 of file qgscoordinatereferencesystemmodel.cpp.
|
inline |
Returns the current filter list of auth ID strings, if set.
Definition at line 401 of file qgscoordinatereferencesystemmodel.h.
|
inline |
Returns whether deprecated CRS will be filtered from the results.
Definition at line 415 of file qgscoordinatereferencesystemmodel.h.
|
inline |
Returns any filters that affect how CRS are filtered.
Definition at line 371 of file qgscoordinatereferencesystemmodel.h.
|
inline |
Returns the current filter string, if set.
Definition at line 386 of file qgscoordinatereferencesystemmodel.h.
|
override |
Definition at line 734 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 633 of file qgscoordinatereferencesystemmodel.cpp.
void QgsCoordinateReferenceSystemProxyModel::setFilterDeprecated | ( | bool | filter | ) |
Sets whether deprecated CRS should be filtered from the results.
Definition at line 647 of file qgscoordinatereferencesystemmodel.cpp.
void QgsCoordinateReferenceSystemProxyModel::setFilters | ( | QgsCoordinateReferenceSystemProxyModel::Filters | filters | ) |
Set filters that affect how CRS are filtered.
Definition at line 618 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 627 of file qgscoordinatereferencesystemmodel.cpp.