[Qgis-developer] Legend group API

Sandro Santilli strk at keybit.net
Wed Dec 12 04:30:05 PST 2012


On Wed, Dec 12, 2012 at 12:20:33PM +0000, Duarte Carreira wrote:
> Sandro, I had seen your pull request but could not figure out if that is all it takes... does it solve the lack of ability to add groups and move them around, even in nested groups?

No. My pull request is aimed at fixing a bug, not at introducing
a new feature.

> We could get by with a simple movelayer (or addlayer or addgroup) that works with groups too, not just layers, and inside whatever tree level. The embed layers menu option works fine using the C api, that just isn't exposed to python. I've attached images of an example.

Sure, I see no problem with adding a moveGroup to put a group under another.
But I guess such new feature should also be supported by project load/save,
whereas project must be able to store the full hierarchy
(is that already the case ?)

Are you willing to provide a patch to do that ?
Do we have a testing framework for project save/load roundtrip ?

--strk;


More information about the Qgis-developer mailing list