QGIS API Documentation 3.41.0-Master (cea29feecf2)
|
A model for display of recently used coordinate reference systems. More...
#include <qgsrecentcoordinatereferencesystemsmodel.h>
Public Types | |
enum class | CustomRole : int { Crs = Qt::UserRole , AuthId } |
Custom model roles. More... | |
Public Member Functions | |
QgsRecentCoordinateReferenceSystemsModel (QObject *parent=nullptr, int subclassColumnCount=1) | |
Constructor for QgsRecentCoordinateReferenceSystemsModel, with the specified parent object. | |
int | columnCount (const QModelIndex &=QModelIndex()) const override |
QgsCoordinateReferenceSystem | crs (const QModelIndex &index) const |
Returns the CRS for the corresponding index. | |
QVariant | data (const QModelIndex &index, int role) const override |
Qt::ItemFlags | flags (const QModelIndex &index) 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 model for display of recently used coordinate reference systems.
Definition at line 37 of file qgsrecentcoordinatereferencesystemsmodel.h.
|
strong |
Custom model roles.
Enumerator | |
---|---|
Crs | Coordinate reference system. |
AuthId | CRS authority ID. |
Definition at line 47 of file qgsrecentcoordinatereferencesystemsmodel.h.
QgsRecentCoordinateReferenceSystemsModel::QgsRecentCoordinateReferenceSystemsModel | ( | QObject * | parent = nullptr , |
int | subclassColumnCount = 1 |
||
) |
Constructor for QgsRecentCoordinateReferenceSystemsModel, with the specified parent object.
Definition at line 28 of file qgsrecentcoordinatereferencesystemsmodel.cpp.
|
override |
Definition at line 88 of file qgsrecentcoordinatereferencesystemsmodel.cpp.
QgsCoordinateReferenceSystem QgsRecentCoordinateReferenceSystemsModel::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 106 of file qgsrecentcoordinatereferencesystemsmodel.cpp.
|
override |
Definition at line 52 of file qgsrecentcoordinatereferencesystemsmodel.cpp.
|
override |
Definition at line 42 of file qgsrecentcoordinatereferencesystemsmodel.cpp.
|
override |
Definition at line 93 of file qgsrecentcoordinatereferencesystemsmodel.cpp.
|
override |
Definition at line 101 of file qgsrecentcoordinatereferencesystemsmodel.cpp.
|
override |
Definition at line 80 of file qgsrecentcoordinatereferencesystemsmodel.cpp.