QDoc: Share the annotated-list visibility filter
The HTML generator's annotated list decides which members to show by
running each one through the inclusion policy and dropping deprecated
entries, but that decision is buried inside the rendering routine. A
caller that wants to know whether a list would produce any visible rows
— to choose whether to emit a surrounding heading, for instance — has no
way to ask without rendering, and reproducing the policy by hand would
create a second copy that can drift from the renderer's.
The membership filter now lives in one place that returns the visible,
display-named set, and the renderer consumes that set through a
collection-keyed entry point. Rendering from a raw member list flows
through the same filter, so the list a caller inspects is exactly the
list that gets rendered. Output is unchanged for every existing list.
Task-number: QTBUG-145046
Pick-to: 6.12
Change-Id: I327cf11e382fc3a9dbbcda40798b8ac68d8daf6f
Reviewed-by: Topi Reinio <topi.reinio@qt.io>