https://issues.qgis.org/https://issues.qgis.org/favicon.ico2011-03-15T05:03:20ZQGIS Issue TrackingQGIS Application - Feature request #3263: QgsLegendInterface.addGroup() nests all groupshttps://issues.qgis.org/issues/3263?journal_id=236642011-03-15T05:03:20ZMarco Bernasocchimarco@bernawebdesign.ch
<ul></ul><p>I m dealing with the same problem in my multiview plugin (<a class="external" href="https://issues.qgis.org/projects/multiview/repository/revisions/master/entry/temporalrasterloaderdialog.py">https://issues.qgis.org/projects/multiview/repository/revisions/master/entry/temporalrasterloaderdialog.py</a>) and i noticed that if i create a group and then load a layer the groups get created at the end of the list (look for the hack in the link). So maybe it is a more complex issue/bug.</p> QGIS Application - Feature request #3263: QgsLegendInterface.addGroup() nests all groupshttps://issues.qgis.org/issues/3263?journal_id=236652011-03-22T07:39:52ZMarco Hugentoblermarco.hugentobler@sourcepole.ch
<ul></ul><p>Applied in <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/855601c3d69be4e107f2223440c4dba1d9d80454" title="Apply patch #3263 to fix adding of groups to Legend. Provided by Marco Bernasocchi git-svn-id: h...">855601c3</a> (SVN r15562). Thanks!</p> QGIS Application - Feature request #3263: QgsLegendInterface.addGroup() nests all groupshttps://issues.qgis.org/issues/3263?journal_id=236662011-03-22T10:56:15ZBorys Jurgiel
<ul><li><strong>Resolution</strong> set to <i>fixed</i></li><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>I believe it can be closed now.</p> QGIS Application - Feature request #3263: QgsLegendInterface.addGroup() nests all groupshttps://issues.qgis.org/issues/3263?journal_id=236672011-03-24T16:18:37ZMarco Bernasocchimarco@bernawebdesign.ch
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Feedback</i></li><li><strong>Resolution</strong> deleted (<del><i>fixed</i></del>)</li></ul> QGIS Application - Feature request #3263: QgsLegendInterface.addGroup() nests all groupshttps://issues.qgis.org/issues/3263?journal_id=236682011-03-24T16:22:45ZBorys Jurgiel
<ul></ul><p>applied in <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/bf9e9d546a4db04033c88c21404c9e22629d5b82" title="patch #3263 from mbernasocchi git-svn-id: http://svn.osgeo.org/qgis/trunk@15594 c8812cc2-4d05-04...">bf9e9d54</a> (SVN r15595)</p> QGIS Application - Feature request #3263: QgsLegendInterface.addGroup() nests all groupshttps://issues.qgis.org/issues/3263?journal_id=236692011-03-24T16:22:57ZBorys Jurgiel
<ul><li><strong>Resolution</strong> set to <i>fixed</i></li><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Closed</i></li></ul> QGIS Application - Feature request #3263: QgsLegendInterface.addGroup() nests all groupshttps://issues.qgis.org/issues/3263?journal_id=236702011-04-19T04:32:28ZMarco Bernasocchimarco@bernawebdesign.ch
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Feedback</i></li><li><strong>Resolution</strong> deleted (<del><i>fixed</i></del>)</li></ul><p>the patch applied was an incomplete one... missunderstanding between Marcos :) here the patch to the patch</p>
<p>ciao</p> QGIS Application - Feature request #3263: QgsLegendInterface.addGroup() nests all groupshttps://issues.qgis.org/issues/3263?journal_id=236712011-04-19T05:01:39ZMarco Hugentoblermarco.hugentobler@sourcepole.ch
<ul><li><strong>Resolution</strong> set to <i>fixed</i></li><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Closed</i></li></ul><p>Applied in with two small modifications:<br />-added missing return statement in addGroupToCurrentItem()<br />-removed debug msg</p> QGIS Application - Feature request #3263: QgsLegendInterface.addGroup() nests all groupshttps://issues.qgis.org/issues/3263?journal_id=236722011-04-19T05:02:48ZMarco Bernasocchimarco@bernawebdesign.ch
<ul></ul><p>ups... :|</p> QGIS Application - Feature request #3263: QgsLegendInterface.addGroup() nests all groupshttps://issues.qgis.org/issues/3263?journal_id=236732011-04-20T02:55:31ZMarco Bernasocchimarco@bernawebdesign.ch
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Feedback</i></li><li><strong>Resolution</strong> deleted (<del><i>fixed</i></del>)</li></ul><p>added python bindings. it supports only nesting into a top level element like removeGroup. we should think of a more flexible solution.</p> QGIS Application - Feature request #3263: QgsLegendInterface.addGroup() nests all groupshttps://issues.qgis.org/issues/3263?journal_id=236742011-04-20T22:06:09ZMarco Hugentoblermarco.hugentobler@sourcepole.ch
<ul></ul><p>Yes, all these group functions with int indices come frome the pre-multiple nesting time. It would probably be better to do a bit of interface redesign for both <a class="wiki-page new" href="https://issues.qgis.org/projects/qgis/wiki/QgsLegend">QgsLegend</a> and <a class="wiki-page new" href="https://issues.qgis.org/projects/qgis/wiki/QgsLegendInterface">QgsLegendInterface</a> after 1.7 (maybe working with QTreeWidgetItems)</p> QGIS Application - Feature request #3263: QgsLegendInterface.addGroup() nests all groupshttps://issues.qgis.org/issues/3263?journal_id=236752011-04-20T22:15:30ZMarco Bernasocchimarco@bernawebdesign.ch
<ul></ul><p>Replying to [comment:13 mhugent]:</p>
<blockquote>
<p>Yes, all these group functions with int indices come frome the pre-multiple nesting time. It would probably be better to do a bit of interface redesign for both <a class="wiki-page new" href="https://issues.qgis.org/projects/qgis/wiki/QgsLegend">QgsLegend</a> and <a class="wiki-page new" href="https://issues.qgis.org/projects/qgis/wiki/QgsLegendInterface">QgsLegendInterface</a> after 1.7 (maybe working with QTreeWidgetItems)</p>
</blockquote>
<p>True, once done with my master we can have a look at it. will you still apply the patch?</p> QGIS Application - Feature request #3263: QgsLegendInterface.addGroup() nests all groupshttps://issues.qgis.org/issues/3263?journal_id=236762011-04-20T22:44:26ZMarco Hugentoblermarco.hugentobler@sourcepole.ch
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Closed</i></li><li><strong>Resolution</strong> set to <i>fixed</i></li></ul><p>Yes, applied in <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/b8853323acc25a9e8eeb290b103f4a74e31d7f05" title="Improve python bindings for adding legend groups (#3263). Patch from Marco Bernasocchi git-svn-i...">b8853323</a> (SVN r15788)</p>