2024-02-06 11:13:01 +10:00
|
|
|
# The following has been generated automatically from src/core/locator/qgslocatormodel.h
|
|
|
|
QgsLocatorModel.Role = QgsLocatorModel.CustomRole
|
|
|
|
# monkey patching scoped based enum
|
|
|
|
QgsLocatorModel.ResultDataRole = QgsLocatorModel.CustomRole.ResultData
|
|
|
|
QgsLocatorModel.Role.ResultDataRole = QgsLocatorModel.CustomRole.ResultData
|
|
|
|
QgsLocatorModel.ResultDataRole.is_monkey_patched = True
|
|
|
|
QgsLocatorModel.ResultDataRole.__doc__ = "QgsLocatorResult data"
|
|
|
|
QgsLocatorModel.ResultTypeRole = QgsLocatorModel.CustomRole.ResultType
|
|
|
|
QgsLocatorModel.Role.ResultTypeRole = QgsLocatorModel.CustomRole.ResultType
|
|
|
|
QgsLocatorModel.ResultTypeRole.is_monkey_patched = True
|
|
|
|
QgsLocatorModel.ResultTypeRole.__doc__ = "Result type"
|
|
|
|
QgsLocatorModel.ResultFilterPriorityRole = QgsLocatorModel.CustomRole.ResultFilterPriority
|
|
|
|
QgsLocatorModel.Role.ResultFilterPriorityRole = QgsLocatorModel.CustomRole.ResultFilterPriority
|
|
|
|
QgsLocatorModel.ResultFilterPriorityRole.is_monkey_patched = True
|
|
|
|
QgsLocatorModel.ResultFilterPriorityRole.__doc__ = "Result priority, used by QgsLocatorProxyModel for sorting roles."
|
|
|
|
QgsLocatorModel.ResultScoreRole = QgsLocatorModel.CustomRole.ResultScore
|
|
|
|
QgsLocatorModel.Role.ResultScoreRole = QgsLocatorModel.CustomRole.ResultScore
|
|
|
|
QgsLocatorModel.ResultScoreRole.is_monkey_patched = True
|
|
|
|
QgsLocatorModel.ResultScoreRole.__doc__ = "Result match score, used by QgsLocatorProxyModel for sorting roles."
|
|
|
|
QgsLocatorModel.ResultFilterNameRole = QgsLocatorModel.CustomRole.ResultFilterName
|
|
|
|
QgsLocatorModel.Role.ResultFilterNameRole = QgsLocatorModel.CustomRole.ResultFilterName
|
|
|
|
QgsLocatorModel.ResultFilterNameRole.is_monkey_patched = True
|
|
|
|
QgsLocatorModel.ResultFilterNameRole.__doc__ = "Associated filter name which created the result"
|
|
|
|
QgsLocatorModel.ResultFilterGroupSortingRole = QgsLocatorModel.CustomRole.ResultFilterGroupSorting
|
|
|
|
QgsLocatorModel.Role.ResultFilterGroupSortingRole = QgsLocatorModel.CustomRole.ResultFilterGroupSorting
|
|
|
|
QgsLocatorModel.ResultFilterGroupSortingRole.is_monkey_patched = True
|
|
|
|
QgsLocatorModel.ResultFilterGroupSortingRole.__doc__ = "Group results within the same filter results"
|
|
|
|
QgsLocatorModel.ResultActionsRole = QgsLocatorModel.CustomRole.ResultActions
|
|
|
|
QgsLocatorModel.Role.ResultActionsRole = QgsLocatorModel.CustomRole.ResultActions
|
|
|
|
QgsLocatorModel.ResultActionsRole.is_monkey_patched = True
|
|
|
|
QgsLocatorModel.ResultActionsRole.__doc__ = "The actions to be shown for the given result in a context menu"
|
2024-08-31 18:05:36 +10:00
|
|
|
QgsLocatorModel.CustomRole.__doc__ = """Custom model roles.
|
|
|
|
|
|
|
|
.. note::
|
|
|
|
|
|
|
|
Prior to QGIS 3.36 this was available as QgsLocatorModel.Role
|
|
|
|
|
|
|
|
.. versionadded:: 3.36
|
|
|
|
|
|
|
|
* ``ResultDataRole``: QgsLocatorResult data
|
|
|
|
* ``ResultTypeRole``: Result type
|
|
|
|
* ``ResultFilterPriorityRole``: Result priority, used by QgsLocatorProxyModel for sorting roles.
|
|
|
|
* ``ResultScoreRole``: Result match score, used by QgsLocatorProxyModel for sorting roles.
|
|
|
|
* ``ResultFilterNameRole``: Associated filter name which created the result
|
|
|
|
* ``ResultFilterGroupSortingRole``: Group results within the same filter results
|
|
|
|
* ``ResultActionsRole``: The actions to be shown for the given result in a context menu
|
|
|
|
|
|
|
|
"""
|
2024-02-06 11:13:01 +10:00
|
|
|
# --
|
|
|
|
QgsLocatorModel.CustomRole.baseClass = QgsLocatorModel
|
2024-08-16 09:08:23 +10:00
|
|
|
try:
|
|
|
|
QgsLocatorModel.__group__ = ['locator']
|
|
|
|
except NameError:
|
|
|
|
pass
|
|
|
|
try:
|
|
|
|
QgsLocatorAutomaticModel.__group__ = ['locator']
|
|
|
|
except NameError:
|
|
|
|
pass
|
|
|
|
try:
|
|
|
|
QgsLocatorProxyModel.__group__ = ['locator']
|
|
|
|
except NameError:
|
|
|
|
pass
|