QDoc: Add deprecation version to IR::Document


When documentation readers encounter a deprecated API, knowing when
it was deprecated is essential for migration planning. The new
template-based generator isn't capable of generating this yet, as the
intermediate representation doesn't carry this information.

The intermediate representation now carries deprecation version
metadata, following the established pattern for version-annotated
fields. Four test scenarios verify the serialization behavior.

Fixes: QTBUG-144120
Change-Id: If52a55a382ac6eedd466bcc9af0aa1e47a672064
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commit1b6c1b21cbf9ba2a70ce4dd2ec3dc7574247e0de
parenta7f422d98ecbf775a8963a5057a68d48bb5ac59f
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeMon, 16 Feb 2026 12:54:31 +0100