QDoc: Replace stringly-typed link metadata with typed LinkData
ContentBuilder and LinkResolver communicate link origin and
resolution state through string attributes in a QJsonObject bag.
This makes the producer/consumer contract implicit and fragile,
since any typo or drift in the string values silently breaks
the logic without a compile-time diagnostic.
LinkOrigin and LinkState are now proper enums, grouped into a
LinkData struct that lives as std::optional on InlineContent.
Only Link inlines carry link metadata; non-link inlines have no
link data at all. ContentBuilder populates LinkData when creating
link inlines, and LinkResolver reads and writes it during
resolution. The genus and module lookup strings stay in the
attributes bag since they're consumed once during resolution.
Task-number: QTBUG-145113
Change-Id: I52d2c3ab35feffe06045cbef45d079853fa42b67
Reviewed-by: Topi Reinio <topi.reinio@qt.io>