qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.52k stars 2.99k forks source link

Allow duplication of groups in legend #15850

Open qgib opened 11 years ago

qgib commented 11 years ago

Author Name: Larry Shaffer (Larry Shaffer) Original Redmine Issue: 6682

Redmine category:map_legend Assignee: Larry Shaffer


Currently, the duplicate function of the legend only duplicates layers. A duplication of groups would also be useful.

One issue that might arise is when a user has block-selected a bunch of layers, and some of them are in a group, and the group is also accidentally selected. Some type of check would need to happen to make sure not to duplicate the layers (in place) and also duplicate the parent group, thereby duplicating the layers again. In theory, if multiple parent groups are accidentally selected, many duplicate group trees could be created. OR, maybe allow that to take place and let users learn from their mistake of selecting the parent group.

Another approach could be to disallow the duplicate function when multiple selections contain a group. Then, only allow duplication of a group when there is a single selection containing a group. This method might be better than trying to recursively figure out what to do with multiple-selected parent groups.

I am assigning this to myself. If some time passes and I do not show any progress, please re-assign.

qgib commented 10 years ago

Author Name: Jürgen Fischer (@jef-n)


qgib commented 8 years ago

Author Name: Médéric RIBREUX (Médéric RIBREUX)


Hello, bug triage...

still true for QGIS 2.13 master. Could be a good feature to implement...

qgib commented 7 years ago

Author Name: Giovanni Manghi (@gioman)


AlisterH commented 1 year ago

@dakcarto I don't know how long this has been possible, but a group can be duplicated by dragging it while holding control. Presumably it wouldn't take much work to add "Duplicate group" to the context menu as well...

AlisterH commented 1 year ago

@dakcarto I don't know how long this has been possible, but a group can be duplicated by dragging it while holding control. Presumably it wouldn't take much work to add "Duplicate group" to the context menu as well...

I note that the layer styling for the group (not the layers, the group itself, i.e. "Render Layers as a Group" options) isn't copied, which probably deserves its own ticket.