[Qgis-developer] Discussion on browser and file extensions

Radim Blazek radim.blazek at gmail.com
Wed May 23 09:45:19 PDT 2012


On Wed, May 23, 2012 at 1:35 PM, Etienne Tourigny
<etourigny.dev at gmail.com> wrote:
> This can be solved in code by removing the extension in the
> QgsDataItem name() member, this way it does not have to be stripped in
> drop operations,
> 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().
QgsDataItem is base for various data sources, most of them are not
file based.

Radim


More information about the Qgis-developer mailing list