QDoc: Remove duplicates in auto-generated lists


Add an extra check to eliminate duplicate entries in auto-generated
lists via \generatelist and \annotatedlist commands. Duplicates are
identified based on identical Node document location (href).

For DocBook generator, inclusion filtering is moved ahead of the
sort, mirroring how HtmlGenerator::includedAnnotatedMembers()
pre-filters its input. This ensures an excluded or deprecated
node cannot be picked as the representative entry for a page,
masking an included duplicate.

Background for the change:

Qt WebEngine has a custom solution generating .qdoc source files
for 3rd party attributions. When QWE is configured to build also
`webenginedriver` component, the two generated source files,
chromium_attributions.qdoc and webenginedriver_attributions.qdoc,
contain partially duplicated content.

While QDoc issues overwrite warnings for these pages, this commit
ensures valid output in auto-generated lists even when sources
contain duplicates.

Pick-to: 6.12
Fixes: QTBUG-150643
Change-Id: I77f3bdb164539802001492e34bd0f56eac57204f
Reviewed-by: David Boddie <david.boddie@qt.io>
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
commitfc9cd817aebbe8966706288b40880eebb86d3dc2
parentc34bafe2df3c3a1860cdc3b9ed120b9493ff428e
authorTopi Reinio <topi.reinio@qt.io>
committerTopi Reinio <topi.reinio@qt.io>
commit timeTue, 29 Sep 2026 08:26:02 +0000