<div dir="ltr"><br><div>+1 too, this makes the code much more readable.</div><div><br></div><div>I also wonder about direct connections in UI files.</div><div>I've come across one lately and hesitated a bit. Any thoughts?</div><div><br></div><div>Denis</div></div><br><div class="gmail_quote"><div dir="ltr">Le mer. 1 mars 2017 à 02:31, Nathan Woodrow <<a href="mailto:madmanwoo@gmail.com">madmanwoo@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr" class="gmail_msg">Yes. Less magic the better </p>
<br class="gmail_msg"><div class="gmail_quote gmail_msg"><div dir="ltr" class="gmail_msg">On Wed, 1 Mar 2017 2:30 pm Martin Dobias <<a href="mailto:wonder.sk@gmail.com" class="gmail_msg" target="_blank">wonder.sk@gmail.com</a>> wrote:<br class="gmail_msg"></div><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Nyall<br class="gmail_msg">
<br class="gmail_msg">
On Wed, Mar 1, 2017 at 8:01 AM, Nyall Dawson <<a href="mailto:nyall.dawson@gmail.com" class="gmail_msg" target="_blank">nyall.dawson@gmail.com</a>> wrote:<br class="gmail_msg">
> Just want to raise a discussion about this. What does everyone think<br class="gmail_msg">
> about these and whether we should be using them in code?<br class="gmail_msg">
><br class="gmail_msg">
> I'm currently leaning toward opening a QEP for blocking them in new<br class="gmail_msg">
> code. Reasons are:<br class="gmail_msg">
><br class="gmail_msg">
> - they are very fragile. Renaming a widget will break the connection<br class="gmail_msg">
> without any compilation error.<br class="gmail_msg">
> - they make searching for widget use harder. You can't use QtCreator's<br class="gmail_msg">
> handy "find usages" option (or the equivalent in other IDEs). You have<br class="gmail_msg">
> to resort to a plain text search.<br class="gmail_msg">
><br class="gmail_msg">
> I'd much prefer to see explicit connections made using new style<br class="gmail_msg">
> connects so we gain the compile time error if anything breaks the<br class="gmail_msg">
> connection.<br class="gmail_msg">
<br class="gmail_msg">
Agreed! Explicit connections are much better...<br class="gmail_msg">
<br class="gmail_msg">
Cheers<br class="gmail_msg">
Martin<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
Qgis-developer mailing list<br class="gmail_msg">
<a href="mailto:Qgis-developer@lists.osgeo.org" class="gmail_msg" target="_blank">Qgis-developer@lists.osgeo.org</a><br class="gmail_msg">
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" class="gmail_msg" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br class="gmail_msg">
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" class="gmail_msg" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote></div>
_______________________________________________<br class="gmail_msg">
Qgis-developer mailing list<br class="gmail_msg">
<a href="mailto:Qgis-developer@lists.osgeo.org" class="gmail_msg" target="_blank">Qgis-developer@lists.osgeo.org</a><br class="gmail_msg">
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" class="gmail_msg" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br class="gmail_msg">
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" class="gmail_msg" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote></div>