[Qgis-developer] Discussion on browser and file extensions

Giuseppe Sucameli sucameli at faunalia.it
Fri May 25 07:55:08 PDT 2012

Hi Radim,

On Wed, May 23, 2012 at 6:45 PM, Radim Blazek <radim.blazek at gmail.com> wrote:
>> and adding a QgsDataItem::fileName() member which the browser would
>> use for layer items. It very simple to fix now.
> It should be possible to get the file name from QgsDataItem::uri().

if the layer is file-based get the name from the uri, otherwise get
it from name(). Is that what you meant?

BTW we need another method, right? Something like

> QgsDataItem is base for various data sources, most of them are not
> file based.

I agree, having a fileName() method in the QgsDataItem class
is non-sense.


Giuseppe Sucameli - Faunalia

More information about the Qgis-developer mailing list