QDoc: Introduce content model infrastructure


Documentation generators need a structured representation of body
content that's decoupled from QDoc's internal atom chain. Walking
atoms directly means each generator reimplements the same structural
patterns, leading to divergent behavior and repeated bug fixes.

A builder class now converts atom chains into block/inline content
trees. Blocks such as paragraphs and sections contain inline elements
such as text and code spans. The tree-building infrastructure uses
index-based paths for safe hierarchical traversal, avoiding pointer
invalidation during list growth. This commit establishes the
machinery; full atom dispatch follows in a subsequent commit.

Task-number: QTBUG-144240
Change-Id: I47b7f5421ec6abd5bb41bae81eff2db57d49589e
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commita8ab064619dddc058ece6d873b0090a85a23c055
parenta529c1c86f55b12b5d60f82c945dd6c5440c2f1e
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeFri, 20 Feb 2026 13:54:09 +0100