QDoc: Suppress empty-label headings in annotated-examples expansion


The annotated-examples catalog emits a section heading and a
table per example group. The heading is emitted unconditionally,
even when the group's label is an empty string. Examples
bucketed under an empty key — a case that arises in
documentation projects without a module landing page — therefore
arrive at the template carrying a heading whose visible text is
nothing, and the rendered page gains a decorative empty heading
that contributes nothing readers would notice.

The legacy HtmlGenerator has always guarded this case. The
template generator now matches: an empty-label group renders its
table without a preceding heading, while labeled groups continue
to render the heading-and-table pair as before. Mixed inputs
render only the headings that carry text.

Task-number: QTBUG-146601
Change-Id: I9375c567aaf240f74887814e5575176afc42ac58
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commit8f73cb6f13ed3c67150f289554dbb04bafa9a03b
parent0cf0845f8bad0372b7957a041ac9dee92b3bfa61
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeThu, 7 May 2026 09:20:46 +0000