[Qgis-developer] Reliable way to determine a groupIndex in the legend tree

Andreas Neumann a.neumann at carto.net
Fri Oct 11 02:33:05 PDT 2013


Am 11.10.2013 09:22, schrieb Sandro Santilli:
> On Fri, Oct 11, 2013 at 09:13:03AM +0000, Duarte Carreira wrote:
>> The group checkbox, imho, should *not always* switch children on/off. You should have a modifier to get this as a secondary behavior, like pressing the ctrl key when (un)checking the group checkbox. The primary behavior of the group switch should be to make the children invisible or visible, regardless of the children's visibility being on or off.
>>
>> In the primary behavior when the parent is turned OFF, the children are not drawn but retain their checked or uncheck status.
>> If you use the secondary behavior then unchecking the parent will uncheck the children. Same would apply when checking the parent on.
> 
> Agreed, sounds like a sensible behavior to me.
> 

Yes, a sensible behavior.

But there is still use-case for the radio-button like behaviour. Imagine
having a group with a series of orthoimages of different years and you
quickly want to see each year. In this case, the radio-button behaviour
would save you one click. So I don't think that this contradicts the
other proposal listed above here.

Andreas



More information about the Qgis-developer mailing list