<div dir="ltr"><div><div><div>Hi,<br><br></div>This has now been committed [0], but now uses a more flexible workflow (API unchanged):<br><br>* Remove deprecated labeling properties tab for new projects or older ones that don't use them<br>
<br>* Deprecated tab remains active for older projects, if any layer uses them<br><br>* Deprecated tab can be disabled/enabled via console commands for project entry, e.g.:<br>  QgsProject.instance().writeEntry('DeprecatedLabels', '/Enabled', bool)<br>
  or<br>  QgsProject.instance().removeEntry('DeprecatedLabels', '/')<br><br><br>[0] <a href="https://github.com/qgis/Quantum-GIS/commit/cae08e42">https://github.com/qgis/Quantum-GIS/commit/cae08e42</a><br>
<br></div>Regards,<br><br></div>Larry<br><br><div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Aug 31, 2013 at 9:31 PM, Larry Shaffer <span dir="ltr"><<a href="mailto:larrys@dakotacarto.com" target="_blank">larrys@dakotacarto.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,<br><br>I have a pull request to remove deprecated labels properties tab from vector layer properties, if not used by an older project [0]. I've tested it, but did not commit it because it included a public function for QgisApp (though no Python binding). If anyone who can pass judgement upon it thinks it is OK, please merge it, or let me know if I can.<br>

<br></div><div>This is the handling of the deprecated labels tab I figured was best:<br><br>* Deprecated labels tab remains active for all layers in an older project, if any layer uses them, for the duration of project's open session (including when saving project instance with no layers that use deprecated labels).<br>

<br>* Caveat (feature?):  If all layers no longer use deprecated labels on project close, when project is reopened, deprecated labels tab will no longer be available. Some users may not like this, but they are being warned about opening an older project version.<br>

<br></div><div>* New projects, or opened older projects that do not use deprecated labels, will never show the deprecated labels tab. With those projects, there is no way to enable the deprecated labeling tab.<br><br></div>

<div>Please let me know if I am off-the-mark with this workflow.<br></div><div><br></div><div>My logic is that if someone is still using deprecated labels in a project, that type of labeling should remain available to all layers in the project. I created an earlier branch where the deprecated labels tab was only turned on for the layers that use deprecated labels [1]. However, this was fairly limiting (see commit message) and would probably annoy users.<br>

<br><br>[0] <a href="https://github.com/qgis/Quantum-GIS/pull/851" target="_blank">https://github.com/qgis/Quantum-GIS/pull/851</a><br>[1] <a href="https://github.com/dakcarto/Quantum-GIS/commit/7eb4866f" target="_blank">https://github.com/dakcarto/Quantum-GIS/commit/7eb4866f</a><br>

<br></div><div>Regards,<br></div><div><div><div><br>Larry<br><br><br></div>
</div></div></div>
</blockquote></div><br></div></div></div></div></div></div>