mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-07 00:15:48 -04: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
48 lines
2.2 KiB
Python
48 lines
2.2 KiB
Python
# The following has been generated automatically from src/core/qgsproviderconnectionmodel.h
|
|
QgsProviderConnectionModel.Role = QgsProviderConnectionModel.CustomRole
|
|
# monkey patching scoped based enum
|
|
QgsProviderConnectionModel.RoleConnectionName = QgsProviderConnectionModel.CustomRole.ConnectionName
|
|
QgsProviderConnectionModel.Role.RoleConnectionName = QgsProviderConnectionModel.CustomRole.ConnectionName
|
|
QgsProviderConnectionModel.RoleConnectionName.is_monkey_patched = True
|
|
QgsProviderConnectionModel.RoleConnectionName.__doc__ = "Connection name"
|
|
QgsProviderConnectionModel.RoleUri = QgsProviderConnectionModel.CustomRole.Uri
|
|
QgsProviderConnectionModel.Role.RoleUri = QgsProviderConnectionModel.CustomRole.Uri
|
|
QgsProviderConnectionModel.RoleUri.is_monkey_patched = True
|
|
QgsProviderConnectionModel.RoleUri.__doc__ = "Connection URI string"
|
|
QgsProviderConnectionModel.RoleConfiguration = QgsProviderConnectionModel.CustomRole.Configuration
|
|
QgsProviderConnectionModel.Role.RoleConfiguration = QgsProviderConnectionModel.CustomRole.Configuration
|
|
QgsProviderConnectionModel.RoleConfiguration.is_monkey_patched = True
|
|
QgsProviderConnectionModel.RoleConfiguration.__doc__ = "Connection configuration variant map"
|
|
QgsProviderConnectionModel.RoleEmpty = QgsProviderConnectionModel.CustomRole.Empty
|
|
QgsProviderConnectionModel.Role.RoleEmpty = QgsProviderConnectionModel.CustomRole.Empty
|
|
QgsProviderConnectionModel.RoleEmpty.is_monkey_patched = True
|
|
QgsProviderConnectionModel.RoleEmpty.__doc__ = "Entry is an empty entry"
|
|
QgsProviderConnectionModel.CustomRole.__doc__ = """Custom model roles.
|
|
|
|
.. note::
|
|
|
|
Prior to QGIS 3.36 this was available as QgsProviderConnectionModel.Role
|
|
|
|
.. versionadded:: 3.36
|
|
|
|
* ``ConnectionName``: Connection name
|
|
|
|
Available as ``QgsProviderConnectionModel.RoleConnectionName`` in older QGIS releases.
|
|
|
|
* ``Uri``: Connection URI string
|
|
|
|
Available as ``QgsProviderConnectionModel.RoleUri`` in older QGIS releases.
|
|
|
|
* ``Configuration``: Connection configuration variant map
|
|
|
|
Available as ``QgsProviderConnectionModel.RoleConfiguration`` in older QGIS releases.
|
|
|
|
* ``Empty``: Entry is an empty entry
|
|
|
|
Available as ``QgsProviderConnectionModel.RoleEmpty`` in older QGIS releases.
|
|
|
|
|
|
"""
|
|
# --
|
|
QgsProviderConnectionModel.CustomRole.baseClass = QgsProviderConnectionModel
|