QDoc: Detect module namespaces correctly


When QDoc decides whether a module has namespaces, it checks the
module's members for classes instead. A module with classes but no
namespaces therefore appears to have namespaces, and a module with
only namespaces appears to have none.

This shows up on the generated module pages. In HTML, the table of
contents lists a `Namespaces` entry that leads nowhere for modules
without namespaces, and leaves the entry out for modules whose page
does render a `Namespaces` section. In WebXML, modules without
namespaces get an empty `Namespaces` section, and modules with only
namespaces get no section at all.

QDoc now checks for namespaces, so the table of contents and the
WebXML output match the namespaces the module actually has. The
expected output for the affected test modules changes to match.

Fixes: QTBUG-151295
Pick-to: 6.12
Change-Id: Id0b51de7e27add7649a7573138761627102673f4
Reviewed-by: David Boddie <david.boddie@qt.io>
commitcaf225a90f08d9624d0a086d28e0b95fb4ae6af2
parentb27399be04135784d8343a9e6761e1fdfa743316
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeThu, 8 Oct 2026 11:01:45 +0000