mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
40 lines
1.9 KiB
Python
40 lines
1.9 KiB
Python
# The following has been generated automatically from src/core/layout/qgslayoutmanager.h
|
|
QgsLayoutManagerModel.Role = QgsLayoutManagerModel.CustomRole
|
|
# monkey patching scoped based enum
|
|
QgsLayoutManagerModel.LayoutRole = QgsLayoutManagerModel.CustomRole.Layout
|
|
QgsLayoutManagerModel.Role.LayoutRole = QgsLayoutManagerModel.CustomRole.Layout
|
|
QgsLayoutManagerModel.LayoutRole.is_monkey_patched = True
|
|
QgsLayoutManagerModel.LayoutRole.__doc__ = "Layout object"
|
|
QgsLayoutManagerModel.CustomRole.__doc__ = """Custom model roles.
|
|
|
|
.. note::
|
|
|
|
Prior to QGIS 3.36 this was available as QgsLayoutManagerModel.Role
|
|
|
|
.. versionadded:: 3.36
|
|
|
|
* ``Layout``: Layout object
|
|
|
|
Available as ``QgsLayoutManagerModel.LayoutRole`` in older QGIS releases.
|
|
|
|
|
|
"""
|
|
# --
|
|
QgsLayoutManagerModel.CustomRole.baseClass = QgsLayoutManagerModel
|
|
QgsLayoutManagerProxyModel.Filters.baseClass = QgsLayoutManagerProxyModel
|
|
Filters = QgsLayoutManagerProxyModel # dirty hack since SIP seems to introduce the flags in module
|
|
try:
|
|
QgsLayoutManager.__attribute_docs__ = {'layoutAboutToBeAdded': 'Emitted when a layout is about to be added to the manager\n', 'layoutAdded': 'Emitted when a layout has been added to the manager\n', 'layoutRemoved': 'Emitted when a layout was removed from the manager\n', 'layoutAboutToBeRemoved': 'Emitted when a layout is about to be removed from the manager\n', 'layoutRenamed': 'Emitted when a layout is renamed\n'}
|
|
QgsLayoutManager.__signal_arguments__ = {'layoutAboutToBeAdded': ['name: str'], 'layoutAdded': ['name: str'], 'layoutRemoved': ['name: str'], 'layoutAboutToBeRemoved': ['name: str'], 'layoutRenamed': ['layout: QgsMasterLayoutInterface', 'newName: str']}
|
|
QgsLayoutManager.__group__ = ['layout']
|
|
except NameError:
|
|
pass
|
|
try:
|
|
QgsLayoutManagerModel.__group__ = ['layout']
|
|
except NameError:
|
|
pass
|
|
try:
|
|
QgsLayoutManagerProxyModel.__group__ = ['layout']
|
|
except NameError:
|
|
pass
|