2 Commits

Author SHA1 Message Date
Denis Rouzaud
cdc2f7fde8
fix PyQGIS docs for QgsProviderMetadata (#37552)
fixes https://github.com/qgis/pyqgis/issues/55
2020-07-03 11:36:11 +02:00
Martin Dobias
90910b0447 Patch QgsProviderMetadata in Python to avoid API break
In C++ we do not support QgsProviderMetadata(key, description, createFunc) anymore,
but for python code we can have a patched class that still supports createFunc.

Why not keep the variant with createFunc in C++ as well? Because... SIP!
With newly added virtual methods in QgsProviderMetadata, SIP started to generate
a sip-specific subclass to handle derived classes in Python, however due to the variant
with PyObject* and custom MethodCode it was getting confused about what constructors
are available in C++ and failing to compile.
2019-06-21 18:27:36 +02:00