QGIS/python/core/auto_additions/qgsabstractprofilesource.py
Germán Carrillo 630e1822eb [tests] add tests for legacy Elevation Profile sources and for legacy Layout Profile items:
+ make sure we keep the API untouched and mark some stuff as legacy (e.g., pure virtual methods in QgsAbstractProfileSource need to have a default implementation and making them pure virtual is postponed until QGIS 5.0),
 + add insertCustomNode(index, node) method to QgsLayerTreeGroup, so that we can set up the custom node before adding it to the layer tree, because if we add it with no custom properties set (e.g., for the elevation profile custom node), it will trigger plot updates but it won't be found due to a still missing custom property.
2025-08-04 09:59:13 +02:00

8 lines
376 B
Python

# The following has been generated automatically from src/core/elevation/qgsabstractprofilesource.h
try:
QgsAbstractProfileSource.__virtual_methods__ = ['profileSourceId', 'profileSourceName']
QgsAbstractProfileSource.__abstract_methods__ = ['createProfileGenerator']
QgsAbstractProfileSource.__group__ = ['elevation']
except (NameError, AttributeError):
pass