mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
We should be using the new name for the enum value instead of the old one in the enum class docstring. Move the old compatible name to an extra note "Available as ``xx.yy`` in older QGIS releases." Fixes #49171
25 lines
1.1 KiB
Python
25 lines
1.1 KiB
Python
# The following has been generated automatically from src/gui/qgsvaliditycheckresultswidget.h
|
|
QgsValidityCheckResultsModel.Roles = QgsValidityCheckResultsModel.CustomRole
|
|
# monkey patching scoped based enum
|
|
QgsValidityCheckResultsModel.DescriptionRole = QgsValidityCheckResultsModel.CustomRole.Description
|
|
QgsValidityCheckResultsModel.Roles.DescriptionRole = QgsValidityCheckResultsModel.CustomRole.Description
|
|
QgsValidityCheckResultsModel.DescriptionRole.is_monkey_patched = True
|
|
QgsValidityCheckResultsModel.DescriptionRole.__doc__ = "Result detailed description"
|
|
QgsValidityCheckResultsModel.CustomRole.__doc__ = """Custom model roles.
|
|
|
|
.. note::
|
|
|
|
Prior to QGIS 3.36 this was available as QgsValidityCheckResultsModel.Roles
|
|
|
|
.. versionadded:: 3.36
|
|
|
|
* ``Description``: Result detailed description
|
|
|
|
Available as ``QgsValidityCheckResultsModel.DescriptionRole`` in older QGIS releases.
|
|
|
|
|
|
"""
|
|
# --
|
|
QgsValidityCheckResultsModel.CustomRole.baseClass = QgsValidityCheckResultsModel
|
|
QgsValidityCheckResultsWidget.runChecks = staticmethod(QgsValidityCheckResultsWidget.runChecks)
|