You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Author Name: Andres Manz - (Andres Manz -)
Original Redmine Issue: 2672
Redmine category:gui
Assignee: nobody -
Would be nice to set group and/or layer visibility (check state) and expansion state in [[QgsLegendInterface]]. I just need it for my plugin, but I thought maybe somebody else could use it someday.
thanks for the patch. I have some suggestions for improvement of the patch in order to commit it:
setItemVisible works with both groups and layers, but only on top level. It would be better to split the functionality into two functions, e.g. setGroupVisible and setLayerVisible - where groups would be identified by the index, layers by the pointer to [[QgsMapLayer]] to keep the API consistent
the "setter" functions should get also appropriate "getter" function to query the state, e.g. for setGroupExpanded there should be a function isGroupExpanded.
Author Name: Andres Manz - (Andres Manz -)
Original Redmine Issue: 2672
Redmine category:gui
Assignee: nobody -
Would be nice to set group and/or layer visibility (check state) and expansion state in [[QgsLegendInterface]]. I just need it for my plugin, but I thought maybe somebody else could use it someday.
The text was updated successfully, but these errors were encountered: