QGIS/python/core/auto_additions/qgsmaplayerfactory.py
Nyall Dawson 989e62a80f Handle docstrings for c++ structs
sip doesn't support the docstring directive for structs (only classes),
so patch these back in via sipify magic
2024-08-16 07:28:29 +10:00

12 lines
984 B
Python

# The following has been generated automatically from src/core/qgsmaplayerfactory.h
try:
QgsMapLayerFactory.__attribute_docs__ = {'transformContext': 'Transform context', 'loadDefaultStyle': 'Set to ``True`` if the default layer style should be loaded', 'loadAllStoredStyles': "Controls whether the stored styles will be all loaded.\n\nIf ``True`` and the layer's provider supports style stored in the\ndata source all the available styles will be loaded in addition\nto the default one.\n\nIf ``False`` (the default), the layer's provider will only load\nthe default style.\n\n.. versionadded:: 3.30"}
except NameError:
pass
QgsMapLayerFactory.typeFromString = staticmethod(QgsMapLayerFactory.typeFromString)
QgsMapLayerFactory.typeToString = staticmethod(QgsMapLayerFactory.typeToString)
QgsMapLayerFactory.createLayer = staticmethod(QgsMapLayerFactory.createLayer)
QgsMapLayerFactory.LayerOptions.__doc__ = """Setting options for loading layers.
.. versionadded:: 3.22"""