mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-17 00:09:36 -04:00
Cleanup QgsProjectionSelectionWidget to use proper models to drive the combo box. This removes a bunch of very fragile logic regarding showing and hiding entries on demand, as it allows us to move all the filtering logic to a single place in a QSortFilterProxyModel subclass. This has a few side benefits: - The combos now dynamically respond to changes like recent CRS being used in other places in QGIS - The widget correctly respects horizontal/vertical crs filters for all entries, including recent crs
9 lines
728 B
Python
9 lines
728 B
Python
# The following has been generated automatically from src/gui/proj/qgsprojectionselectionwidget.h
|
|
QgsProjectionSelectionWidget.Invalid = QgsProjectionSelectionWidget.CrsOption.Invalid
|
|
QgsProjectionSelectionWidget.LayerCrs = QgsProjectionSelectionWidget.CrsOption.LayerCrs
|
|
QgsProjectionSelectionWidget.ProjectCrs = QgsProjectionSelectionWidget.CrsOption.ProjectCrs
|
|
QgsProjectionSelectionWidget.CurrentCrs = QgsProjectionSelectionWidget.CrsOption.CurrentCrs
|
|
QgsProjectionSelectionWidget.DefaultCrs = QgsProjectionSelectionWidget.CrsOption.DefaultCrs
|
|
QgsProjectionSelectionWidget.RecentCrs = QgsProjectionSelectionWidget.CrsOption.RecentCrs
|
|
QgsProjectionSelectionWidget.CrsNotSet = QgsProjectionSelectionWidget.CrsOption.CrsNotSet
|