mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -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
24 lines
840 B
Python
24 lines
840 B
Python
# The following has been generated automatically from src/core/qgsdatabaseschemamodel.h
|
|
QgsDatabaseSchemaModel.Role = QgsDatabaseSchemaModel.CustomRole
|
|
# monkey patching scoped based enum
|
|
QgsDatabaseSchemaModel.RoleEmpty = QgsDatabaseSchemaModel.CustomRole.Empty
|
|
QgsDatabaseSchemaModel.Role.RoleEmpty = QgsDatabaseSchemaModel.CustomRole.Empty
|
|
QgsDatabaseSchemaModel.RoleEmpty.is_monkey_patched = True
|
|
QgsDatabaseSchemaModel.RoleEmpty.__doc__ = "Entry is an empty entry"
|
|
QgsDatabaseSchemaModel.CustomRole.__doc__ = """Custom model roles.
|
|
|
|
.. note::
|
|
|
|
Prior to QGIS 3.36 this was available as QgsDatabaseSchemaModel.Role
|
|
|
|
.. versionadded:: 3.36
|
|
|
|
* ``Empty``: Entry is an empty entry
|
|
|
|
Available as ``QgsDatabaseSchemaModel.RoleEmpty`` in older QGIS releases.
|
|
|
|
|
|
"""
|
|
# --
|
|
QgsDatabaseSchemaModel.CustomRole.baseClass = QgsDatabaseSchemaModel
|