qgis / qgis4.0_api

Tracker for QGIS 4.0 API related issues and developer discussion
3 stars 1 forks source link

QgsDataItem::providerKey has different semantic in subclasses #114

Open elpaso opened 3 years ago

elpaso commented 3 years ago

QgsDataItem::providerKey() is supposed to return the QgsDataItemProvider name (key) but all layer items are (correctly, because that value is required for drag and drop mime types) initiated with the name of the QgsDataProvider associated with the layer and hence they return the QgsDataProvider key and not the QgsDataItemProvider key.

I'm proposing to:

m-kuhn commented 3 years ago

This can be done outside a 4.0 change.

elpaso commented 3 years ago

Not with the ctor changes.

m-kuhn commented 3 years ago

Agreed. In this case only 90% of this change can be done outside a 4.0 change.