QDoc: Introduce QmlTypeInfo IR value type for QML page metadata


Templates rendering QML type pages need structured access to import
statements, inheritance relationships, native C++ type links, and
singleton or value-type status. Without a dedicated IR type for this
metadata, templates would have to reach back into the documentation
database at render time, breaking the frozen-IR principle.

QmlTypeInfo is a pure value type that serializes to JSON under a
"qmlType" key. A "hasQmlType" boolean flag on Document enables
templates to guard QML-specific sections safely. Nine new Catch2
scenarios verify serialization of all fields: import statement,
inherits chain, inherited-by list, native type link, singleton flag,
value type flag, and full population with Document integration.

Task-number: QTBUG-145115
Change-Id: If9834a347773da8d7456105709dc3e46fe51255a
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commit7ef1aba9244273edba1cb959dc62656b3c999148
parent0cb0dcd1b6bce279573bdde025a833ef41c64216
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeMon, 23 Mar 2026 18:43:22 +0100