[QGIS-Developer] Locator search results - double click vs. single click
nyall.dawson at gmail.com
Wed Oct 16 15:47:00 PDT 2019
On Tue, 15 Oct 2019 at 18:34, Denis Rouzaud <denis.rouzaud at gmail.com> wrote:
> Hi Andreas,
> The locator widget result is a tree view. Results are triggered when the item is activated.
> From Qt doc , activation depends on the platform (single vs double click).
> We could change this to use clicked (actually clicked+entered) instead.
> I don't know why it was built like this at first, let's wait for Nyall's input.
I don't think there was any particular motivation behind the
double-click interaction. I was mostly trying to reproduce exactly how
Qt creator's locator worked, so that's likely what drove that
That said, we'd need to ensure we don't break keyboard only
interaction by a move away from the double-click activation.
>  https://doc.qt.io/qt-5/qabstractitemview.html#activated
> Le mar. 15 oct. 2019 à 09:22, Andreas Neumann <a.neumann at carto.net> a écrit :
>> 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.
>> For now I said them that QGIS core does it like this and that Plugins cannot or should not change this behaviour.
>> 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?
>> QGIS-Developer mailing list
>> QGIS-Developer at lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
More information about the QGIS-Developer