weld::IconView and weld::TreeView implement the same logic
to subscribe to and emit signals when an item/row is activated.
Deduplicate that by moving the logic to the shared
weld::ItemView base class.
While at it, also adjust the connect_item_activated
doc so far only explaining the TreeView case (for both
implementations, also the IconView one, which was
probably just copy-pasted earlier) to also take
into account the IconView case.
Change-Id: I0281645e99492139d53f6a50403237eff8cde6a2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/203351
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins