<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi Nyall,</p>
<p>Is there no technical reason for the double click? If not, then I would suggest, single click would be better (if it is feasible to switch at all). Most online tools (like Google search, or Web-GIS) have a single click for the search results. I don't think that QGIS users care about Qt creator's locator. >99% wouldn't even know that Qt creator exists.</p>
<p>Personally, I don't have a strong opinion on it, but colleagues at my employer asked my "why double click?" and I promised them to find out why it is that way. They said: wouldn't it be nice, if QGIS would behave like most other applications when it comes to search ...</p>
<p>Thanks,</p>
<p>Andreas</p>
<p id="reply-intro">On 2019-10-17 00:47, Nyall Dawson wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">On Tue, 15 Oct 2019 at 18:34, Denis Rouzaud <<a href="mailto:denis.rouzaud@gmail.com">denis.rouzaud@gmail.com</a>> wrote:
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><br />Hi Andreas,<br /><br />The locator widget result is a tree view. Results are triggered when the item is activated.<br />From Qt doc [<a href="https://doc.qt.io/qt-5/qabstractitemview.html#activated" target="_blank" rel="noopener noreferrer">0</a>], activation depends on the platform (single vs double click).<br /><br />We could change this to use clicked (actually clicked+entered) instead.<br /><br />I don't know why it was built like this at first, let's wait for Nyall's input.</blockquote>
<br />I don't think there was any particular motivation behind the<br />double-click interaction. I was mostly trying to reproduce exactly how<br />Qt creator's locator worked, so that's likely what drove that<br />decision.<br /><br />That said, we'd need to ensure we don't break keyboard only<br />interaction by a move away from the double-click activation.<br /><br />Nyall<br /><br />
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><br />Denis<br /><br />[0] <a href="https://doc.qt.io/qt-5/qabstractitemview.html#activated" target="_blank" rel="noopener noreferrer">https://doc.qt.io/qt-5/qabstractitemview.html#activated</a><br /><br />Le mar. 15 oct. 2019 à 09:22, Andreas Neumann <<a href="mailto:a.neumann@carto.net">a.neumann@carto.net</a>> a écrit :
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><br />Hi,<br /><br />We just had a Locator plugin developed for our organization. During beta testing it, my users asked why they have to "double-click" instead of "single-click" on a search result in order to get the chosen search result.<br /><br />For now I said them that QGIS core does it like this and that Plugins cannot or should not change this behaviour.<br /><br />But why is QGIS core using double click instead of single click? I guess there might be a reason ... Could you please fill me in about the reason?<br /><br />Thanks,<br /><br />Andreas<br /><br /><br />_______________________________________________<br />QGIS-Developer mailing list<br /><a href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a><br />List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br />Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote>
<br />_______________________________________________<br />QGIS-Developer mailing list<br /><a href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a><br />List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br />Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote>
</div>
</blockquote>
<p><br /></p>

</body></html>