QDoc: Distinguish definition lists from bullet lists in IR


QDoc's documentation commands produce three structurally different list
types: bullet/numeric lists, definition lists (\list tag), and enum
value tables (\value). The IR content model treats all three as plain
List/ListItem blocks, losing the term-description pairing that
definition and value lists carry. Templates can't render enum value
names alongside their descriptions because the information is
structurally indistinguishable from a flat bullet list.

The IR now has DefinitionList, DefinitionTerm, and DefinitionDescription
block types. ContentBuilder reads the list type string from the opening
atom and routes "tag" and "value" lists to the new types while leaving
bullet and numeric lists unchanged. Templates render value lists as
tables with a "Constant" and "Description" header row, matching the
HtmlGenerator's existing output. Tag lists render as HTML definition
lists. Markdown templates use pipe tables for value lists and
bold-term/description pairs for tag lists.

Task-number: QTBUG-137409
Change-Id: I45413f3535d738022d713afcfe1731d85faebf06
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commit48abd48109423882c7bf274b2a8d2568eefafbef
parent3e441c8452670d5cf23fe2e4366e79c5e586a990
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeWed, 25 Mar 2026 13:20:08 +0100