[QGIS-trac] [Quantum GIS] #3263: QgsLegendInterface.addGroup()
nests all groups
Quantum GIS
qgis at qgis.org
Mon Nov 29 04:25:07 EST 2010
#3263: QgsLegendInterface.addGroup() nests all groups
--------------------------------+-------------------------------------------
Reporter: anitagraser | Owner: nobody
Type: bug | Status: new
Priority: minor: annoyance | Milestone: Version 1.7.0
Component: Map Legend | Version: Trunk
Keywords: | Platform_version:
Platform: All | Must_fix: No
Status_info: 0 |
--------------------------------+-------------------------------------------
The following code adds four groups to the legend. Unfortunately they're
all nested while the goal would be to put them into legend root:
{{{
i = qgis.utils.iface
l = i.legendInterface()
groupAnnotation = l.addGroup("Annotation",False)
groupDimensioning = l.addGroup("Dimensioning", True)
groupLocation = l.addGroup("Location", True)
groupTopo = l.addGroup("Topo", True)
}}}
Compare: http://forum.qgis.org/viewtopic.php?f=5&t=7583
--
Ticket URL: <http://trac.osgeo.org/qgis/ticket/3263>
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