hi Andy, IIRC there was a mail about somebody working there to give more control. just looked up, it was endmax. see [1] ciao
(1) https://github.com/qgis/Quantum-GIS/commit/318dd7c16ba0686a02f0ae981d5c380d79466d16#src/app/legend/qgsapplegendinterface.cpp Marco Bernasocchi (mobile) http://opengis.ch On Sep 25, 2012 11:06 PM, "Andreas Neumann" <[email protected]> wrote: > Hi, > > When testing a self-written plugin, I noticed a different behavior between > QGIS 1.8 and master. > > I used the following code to move a layer into a certain group which I > detected by name: > > here is the code: > > groups = [] > for group in self.legend.**groupLayerRelationship(): > groups.append(group[0]) > groupIndex = groups.index(groupName) > #move new layer to existing group > self.legend.moveLayer(**schuelerLayer, groupIndex) > > While this works fine in QGIS 1.8, in QGIS master it is shifted to one > group below the correct group. Did some behavior of the groupIndex change? > > Thanks, > Andreas > > -- > -- > Andreas Neumann > Böschacherstrasse 10A > 8624 Grüt (Gossau ZH) > Switzerland > ______________________________**_________________ > Qgis-developer mailing list > [email protected] > http://lists.osgeo.org/**mailman/listinfo/qgis-**developer<http://lists.osgeo.org/mailman/listinfo/qgis-developer> >
_______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
