<div dir="ltr"><div><div>Sorry, I think I do not well express my thoughts [0] . Maybe it's an UX matter instead of developer's (so CCing UX-list). Let me reword it. Do we need at the same place two "buttons" that do same thing?<br></div><div>I'll take QGIS2.4 as basis since these changes were introduced in 2.6 (if i'm not wrong) and I haven't really tested legends in newer releases till now.<br></div><div><br>In 2.4, after you add a legend in the composer, it adds all layers that are visible. And legend item is by default independent of what happens to the TOC. For example, renaming layers in the TOC won't be applied unless the user decided to do so. 3 options were proposed:<br>- "auto-update" checkbox (checked by default) which automatically triggers the changes done in the style of an *already added*  layer to the legend item. Issue : changes done to a layer when the option is unchecked are not applied unless you redo changes in the same layer. <br>- This issue can be fixed by the use of "update item" option which applies the classification of the selected legend item, one by one. <br>- and "update all" a contrario, resets all the legend according to layers shown in the main map canvas : delete ALL the modifications added by the user in the legend, add all the visible layers, removes the invisible ones<br></div><div>The main issue with this system is that legend may not be synchrone with the map item since updating procedure in legend was mainly on either already added layers or visible layers in canvas and these layers may not be the ones in the map item. But on the other hand, there are three options that do three different things.<br><br></div><div><br></div>In the current design (master 43c046b and it should be same thing in LTR), if you add a legend, it  adds ALL the layers available in the project, visible or not [1]. And any change applied to the properties of a layer listed in the legend item is immediately triggered, meaning that the "update item" option is no more needed. I agree with you. And having a real and direct relation between layer panel and legend item is a great improvement.<br>But I notice that changes in a layer properties are echoed in the legend with or without "auto-update" option checked. Actually "auto-update" option just resets the legend list, ensuring that the legend looks like the layer panel (added/removed/moved layers). And so does "update all". Same thing! One is automatic, the other one isn't.<br>Isn't there another way to provide same capabilities without two buttons?<br></div><div><br></div>Notice that there is a "Reset default" option in the contextual menu of legend item. Better move it up?<br><div><br>[0] <a href="http://comments.gmane.org/gmane.comp.gis.qgis.devel/38833">http://comments.gmane.org/gmane.comp.gis.qgis.devel/38833</a> <br><b> </b>[1] <a href="http://hub.qgis.org/issues/13575" target="_blank">http://hub.qgis.org/issues/13575</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Regards,<br></div><div class="gmail_extra">DelazJ<br><br></div><div class="gmail_extra"><div class="gmail_quote">2015-10-12 18:14 GMT+02:00 m roy <span dir="ltr"><<a href="mailto:royroge@outlook.com" target="_blank">royroge@outlook.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">



<div bgcolor="#FFFFFF" text="#000000">
"After changing the symbology in the QGIS main window you can click on <b>[Update]</b> to adapt the changes in the legend element of the print composer"<br>
<br>
I think that now changes in the legend element of print composer is automatic when you change, say, layer name color,<br>
and that was the purpose of "update item" <br><div><div>
<br>
<div>Il 12/10/2015 18.02, DelazJ ha scritto:<br>
</div>
<blockquote type="cite">
<div dir="ltr">For the recall : <a href="http://docs.qgis.org/2.0/en/docs/user_manual/print_composer/print_composer.html#legend-items" target="_blank">
http://docs.qgis.org/2.0/en/docs/user_manual/print_composer/print_composer.html#legend-items</a><br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2015-10-12 17:51 GMT+02:00 m roy <span dir="ltr"><<a href="mailto:royroge@outlook.com" target="_blank">royroge@outlook.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span><br>
> In previous releases (till 2.4 I think), there was another option<br>
> "Update item" that keeps user customization and can explain why there<br>
> was an "Update all" option that resets all modifications. Now, both<br>
> options do reset.<br>
><br>
<br>
</span>Well this is another issue, but i don't remember what was Update item<br>
purpose ...sorry<br>
<div>
<div>_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a></div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</div></div></div>

</blockquote></div><br></div></div>