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>