|
QGIS API Documentation 3.99.0-Master (2fe06baccd8)
|
A tree model for display of known coordinate reference systems. More...
#include <qgscoordinatereferencesystemmodel.h>

Public Types | |
| enum class | CustomRole : int { NodeType = Qt::UserRole , Name = Qt::UserRole + 1 , AuthId = Qt::UserRole + 2 , Deprecated = Qt::UserRole + 3 , Type = Qt::UserRole + 4 , GroupId = Qt::UserRole + 5 , Wkt = Qt::UserRole + 6 , Proj = Qt::UserRole + 7 , Group = Qt::UserRole + 8 , Projection = Qt::UserRole + 9 } |
| Custom model roles. More... | |
Public Member Functions | |
| QgsCoordinateReferenceSystemModel (QObject *parent=nullptr) | |
| Constructor for QgsCoordinateReferenceSystemModel, with the specified parent object. | |
| QModelIndex | addCustomCrs (const QgsCoordinateReferenceSystem &crs) |
| Adds a custom crs to the model. | |
| QModelIndex | authIdToIndex (const QString &authId) const |
| Retrieves the model index corresponding to a CRS with the specified authId. | |
| int | columnCount (const QModelIndex &=QModelIndex()) const override |
| QVariant | data (const QModelIndex &index, int role) const override |
| Qt::ItemFlags | flags (const QModelIndex &index) const override |
| QVariant | headerData (int section, Qt::Orientation orientation, int role) const override |
| QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const override |
| QModelIndex | parent (const QModelIndex &index) const override |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
A tree model for display of known coordinate reference systems.
Definition at line 248 of file qgscoordinatereferencesystemmodel.h.
|
strong |
Custom model roles.
Definition at line 261 of file qgscoordinatereferencesystemmodel.h.
| QgsCoordinateReferenceSystemModel::QgsCoordinateReferenceSystemModel | ( | QObject * | parent = nullptr | ) |
Constructor for QgsCoordinateReferenceSystemModel, with the specified parent object.
Definition at line 27 of file qgscoordinatereferencesystemmodel.cpp.
| QModelIndex QgsCoordinateReferenceSystemModel::addCustomCrs | ( | const QgsCoordinateReferenceSystem & | crs | ) |
Adds a custom crs to the model.
This method can be used to add CRS which aren't present in either the standard PROJ SRS database or the user's custom CRS database to the model.
Definition at line 472 of file qgscoordinatereferencesystemmodel.cpp.
| QModelIndex QgsCoordinateReferenceSystemModel::authIdToIndex | ( | const QString & | authId | ) | const |
Retrieves the model index corresponding to a CRS with the specified authId.
Returns an invalid index if the CRS was not found.
Definition at line 244 of file qgscoordinatereferencesystemmodel.cpp.
|
override |
Definition at line 211 of file qgscoordinatereferencesystemmodel.cpp.
|
override |
Definition at line 61 of file qgscoordinatereferencesystemmodel.cpp.
|
override |
Definition at line 40 of file qgscoordinatereferencesystemmodel.cpp.
|
override |
Definition at line 177 of file qgscoordinatereferencesystemmodel.cpp.
|
override |
Definition at line 216 of file qgscoordinatereferencesystemmodel.cpp.
|
override |
Definition at line 228 of file qgscoordinatereferencesystemmodel.cpp.
|
override |
Definition at line 202 of file qgscoordinatereferencesystemmodel.cpp.