[QGIS-Developer] providers: layerCount or subLayersCount?

Alessandro Pasotti apasotti at gmail.com
Sat Aug 12 08:40:19 PDT 2017


I'm confused about the correct naming for this possibly duplicated

In the base class QgsDataProvider, we have and empty (returns 0):
virtual uint subLayerCount() const

but, in the providers code we have a mix of layerCount and subLayersCount,
the former is not virtual.

IMHO, we should use the base class virtual subLayersCount and rename all
the providers layerCount to override the subLayersCount.

Alessandro Pasotti
w3:   www.itopen.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20170812/24d94eea/attachment.html>

More information about the QGIS-Developer mailing list