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:
deprecate and rename QgsDataItem::providerKey to QgsDataItem::dataItemProviderKey (always valued, make the dataItemProviderKey a mandatory argument in QgsDataItem ctor)
add QgsDataItem::dataProviderKey (possibly blank because not all data items have a corresponding QgsDataProvider)
QgsDataItem::providerKey()
is supposed to return theQgsDataItemProvider
name (key) but all layer items are (correctly, because that value is required for drag and drop mime types) initiated with the name of theQgsDataProvider
associated with the layer and hence they return theQgsDataProvider
key and not theQgsDataItemProvider
key.I'm proposing to:
QgsDataItem::providerKey
toQgsDataItem::dataItemProviderKey
(always valued, make the dataItemProviderKey a mandatory argument inQgsDataItem
ctor)QgsDataItem::dataProviderKey
(possibly blank because not all data items have a correspondingQgsDataProvider
)