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>