Class: QgsRecentCoordinateReferenceSystemsProxyModel¶
- class qgis.gui.QgsRecentCoordinateReferenceSystemsProxyModel¶
Bases:
PyQt5.QtCore.QSortFilterProxyModel
A sort/filter proxy model for recent coordinate reference systems.
Added in version 3.36.
QgsRecentCoordinateReferenceSystemsProxyModel(parent: Optional[QObject] = None) Constructor for
QgsRecentCoordinateReferenceSystemsProxyModel
, with the givenparent
object.Methods
Returns the CRS for the corresponding
index
.- param sourceRow:
Returns any filters that affect how CRS are filtered.
Returns the underlying source model.
Sets whether deprecated CRS should be filtered from the results.
Sets a
filter
string, such that only coordinate reference systems matching the specified string will be shown.Set
filters
that affect how CRS are filtered.- beginInsertColumns(self, parent: QModelIndex, first: int, last: int)¶
- beginInsertRows(self, parent: QModelIndex, first: int, last: int)¶
- beginMoveColumns(self, sourceParent: QModelIndex, sourceFirst: int, sourceLast: int, destinationParent: QModelIndex, destinationColumn: int) bool ¶
- beginMoveRows(self, sourceParent: QModelIndex, sourceFirst: int, sourceLast: int, destinationParent: QModelIndex, destinationRow: int) bool ¶
- beginRemoveColumns(self, parent: QModelIndex, first: int, last: int)¶
- beginRemoveRows(self, parent: QModelIndex, first: int, last: int)¶
- beginResetModel(self)¶
- changePersistentIndex(self, from_: QModelIndex, to: QModelIndex)¶
- changePersistentIndexList(self, from_: Iterable[QModelIndex], to: Iterable[QModelIndex])¶
- childEvent(self, a0: QChildEvent | None)¶
- connectNotify(self, signal: QMetaMethod)¶
- createIndex(self, row: int, column: int, object: Any = None) QModelIndex ¶
- crs(self, index: QModelIndex) QgsCoordinateReferenceSystem ¶
Returns the CRS for the corresponding
index
.Returns an invalid CRS if the index is not valid.
- Parameters:
index (QModelIndex)
- Return type:
- customEvent(self, a0: QEvent | None)¶
- decodeData(self, row: int, column: int, parent: QModelIndex, stream: QDataStream) bool ¶
- disconnectNotify(self, signal: QMetaMethod)¶
- encodeData(self, indexes: Iterable[QModelIndex], stream: QDataStream)¶
- endInsertColumns(self)¶
- endInsertRows(self)¶
- endMoveColumns(self)¶
- endMoveRows(self)¶
- endRemoveColumns(self)¶
- endRemoveRows(self)¶
- endResetModel(self)¶
- filterAcceptsColumn(self, source_column: int, source_parent: QModelIndex) bool ¶
- filterAcceptsRow(self, sourceRow: int, sourceParent: QModelIndex) bool ¶
- Parameters:
sourceRow (int)
sourceParent (QModelIndex)
- Return type:
bool
- filters(self) QgsCoordinateReferenceSystemProxyModel.Filters ¶
Returns any filters that affect how CRS are filtered.
See also
- Return type:
- invalidateFilter(self)¶
- isSignalConnected(self, signal: QMetaMethod) bool ¶
- lessThan(self, left: QModelIndex, right: QModelIndex) bool ¶
- persistentIndexList(self) List[QModelIndex] ¶
- receivers(self, signal: PYQT_SIGNAL) int ¶
- recentCoordinateReferenceSystemsModel(self) QgsRecentCoordinateReferenceSystemsModel | None ¶
Returns the underlying source model.
- Return type:
Optional[QgsRecentCoordinateReferenceSystemsModel]
- resetInternalData(self)¶
- sender(self) QObject | None ¶
- senderSignalIndex(self) int ¶
- setFilterDeprecated(self, filter: bool)¶
Sets whether deprecated CRS should be filtered from the results.
- Parameters:
filter (bool)
- setFilterString(self, filter: str | None)¶
Sets a
filter
string, such that only coordinate reference systems matching the specified string will be shown.- Parameters:
filter (Optional[str])
- setFilters(self, filters: QgsCoordinateReferenceSystemProxyModel.Filters | QgsCoordinateReferenceSystemProxyModel.Filter)¶
Set
filters
that affect how CRS are filtered.- Parameters:
filters (Union[QgsCoordinateReferenceSystemProxyModel.Filters)
- timerEvent(self, a0: QTimerEvent | None)¶