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>