[QGIS-trac] Re: [Quantum GIS] #2492: Legend fails to update when
layer visibility is changed during QgsMapCanvas::setLayerSet
Quantum GIS
qgis at qgis.org
Wed Mar 10 14:24:32 EST 2010
#2492: Legend fails to update when layer visibility is changed during
QgsMapCanvas::setLayerSet
-----------------------------------------------------+----------------------
Reporter: audun | Owner: mhugent
Type: patch | Status: new
Priority: major: does not work as expected | Milestone: Version 1.5.0
Component: Map Legend | Version: HEAD
Resolution: | Keywords:
Platform_version: | Platform: All
Must_fix: No | Status_info: 0
-----------------------------------------------------+----------------------
Comment (by mhugent):
Could you test with your plugin the following case:
You have legend groups with several layers in it and you change the
visibility of a layer inside the group by plugin. Let's say the layers are
all visible, but the plugin changes one to not visible. Does the group
check box change to partially checked (as it should)?
If yes, it's ok. If not, you might need to add, in the function
'refreshCheckStates()' another loop that goes through all the groups and
calls QgsLegendGroup::updateCheckState() for each.
Regards,
Marco
--
Ticket URL: <http://trac.osgeo.org/qgis/ticket/2492#comment:3>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats
More information about the QGIS-trac
mailing list