QDoc: Parameterize QML lookup by search tree


QML node and type lookup currently search the whole forest. A caller
that needs to restrict a lookup to one imported module cannot reuse
that lookup without first selecting candidates from unrelated trees.

Accept an optional search tree in the QML lookup helpers and thread
it through module, type and member discovery. Existing callers omit
the parameter and retain their forest-wide lookup and fallback order.
No caller selects a tree yet, and generated output stays unchanged.

This prepares scoped explicit-link lookup without changing its
eligibility or the interpretation of existing references.

Task-number: QTBUG-137279
Pick-to: 6.12
Change-Id: I18ecb982df4b05d0b9fb89c3a1331347743845e3
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commit8fc13eddbbfbfac0f8301d43d35d06bff73b8416
parent367e88150e71046c60e94cc112b3d8c5e1772376
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeWed, 21 Oct 2026 18:28:06 +0000