QDoc: Use a common genus to find nodes related to the relative node


The auto-linking feature will sometimes find nodes that are less
relevant than others when there are multiple link targets with the same
name. Using a common genus between the requested genus and the genus of
the relative node, narrows the search and finds more suitable targets.

For example, auto-linking to a name from a C++ API document will tend to
find a C++ object with that name instead of an identically-named QML
object.

Change-Id: I3e9e2f01a85f5d9b4bbd367a497001de811e193d
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
commit6bdd5550d280dcc3619299013e0c264b7f86def1
parentb5cb510818a0f4e5c561aaffc44a6ca0b131fa13
authorDavid Boddie <david.boddie@qt.io>
committerDavid Boddie <david.boddie@qt.io>
commit timeWed, 5 Aug 2026 14:25:13 +0000