QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
|
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 48 of file qgsrecentcoordinatereferencesystemsmodel.h.
QgsRecentCoordinateReferenceSystemsModel::QgsRecentCoordinateReferenceSystemsModel | ( | QObject * | parent = nullptr , |
int | subclassColumnCount = 1 |
||
) |
Constructor for QgsRecentCoordinateReferenceSystemsModel, with the specified parent object.
Definition at line 27 of file qgsrecentcoordinatereferencesystemsmodel.cpp.
|
override |
Definition at line 87 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 105 of file qgsrecentcoordinatereferencesystemsmodel.cpp.
|
override |
Definition at line 51 of file qgsrecentcoordinatereferencesystemsmodel.cpp.
|
override |
Definition at line 41 of file qgsrecentcoordinatereferencesystemsmodel.cpp.
|
override |
Definition at line 92 of file qgsrecentcoordinatereferencesystemsmodel.cpp.
|
override |
Definition at line 100 of file qgsrecentcoordinatereferencesystemsmodel.cpp.
|
override |
Definition at line 79 of file qgsrecentcoordinatereferencesystemsmodel.cpp.