Bug report #19960
layer tree embedded widget provider's supportsLayer() method is never called
|Affected QGIS version:||3.3(master)||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||fixed/implemented|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||27782|
The `QgsLayerTreeEmbeddedWidgetProvider` class defines a virtual method `supportsLayer()` that should be called in order to check if the provider supports adding widgets to specific layers. This method is currently not called anywhere in QGIS' code base.
This means that custom providers cannot really target their widgets to specific layers
For more in this please check out this thread on qgis-dev mailing list, where the issue was originally brought up:
#2 Updated by Ricardo Silva almost 2 years ago
Alessandro Pasotti wrote:
it's used in QgsLayerTreeEmbeddedConfigWidget::setLayer
yes, it is now used in `QgsLayerTreeEmbeddedConfigWidget::setLayer`, after I have submitted a PR with the change and it having been merged nine days ago.
So I guess this should be closed with a `fixed/implemented` instead.