[Qgis-developer] index in self.legend.groupLayerRelationship - different behavior between QGIS 1.8 and master?
Martin Dobias
wonder.sk at gmail.com
Fri Oct 5 14:07:44 PDT 2012
On Fri, Oct 5, 2012 at 9:08 PM, Etienne Tourigny
<etourigny.dev at gmail.com> wrote:
>
> I'd support either Martin's solution or exposing the QgsLegend and
> related classes to python. But even there, GroupLayerInfo and
> QgsLegend::groupLayerRelationship() have to be modified, or dropped.
Just let me note that exposing QgsLegend is currently not really
possible as it is not (yet) a part of GUI library because there are
some dependencies on other qgis application specific classes that
would need to be removed first. Also, QgsLegend should really be
refactored to use more flexible model/view approach - currently it is
based on QTreeWidget convenience view and that does not fit so well
anymore with the functionality we need.
Martin
More information about the Qgis-developer
mailing list