Android: return -1 when a signal listener fails to connect


connectSignalListener() documents a negative return on failure,
but it handed out a freshly generated identifier no matter what.
The native addRootObjectSignalListener() already reports failure
and the package-private overload dropped it on the floor.

Make that overload return the native result, and propagate it
from both public entry points. QtQuickViewContent also stopped
recording an identifier for a connection that never happened.

The documentation was wrong in two further ways. It promised
<code>true</code> from a method that returns int, and it
promised an existing connection id for a repeated connection,
which no code path returns. Reword all four copies and state
that a signal carries one listener.

Pick-to: 6.12
Fixes: QTBUG-150672
Change-Id: I49d202e3611da2e7f908525a49e138eba8ab81c3
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
commit0d042e78476730212a54d6d2c3e76506c34db133
parentd490e7b6731e4c94cd751638443fe78a93e0700e
authorAssam Boudjelthia <assam.boudjelthia@qt.io>
committerAssam Boudjelthia <assam.boudjelthia@qt.io>
commit timeSun, 11 Oct 2026 09:06:55 +0000