QDoc: Prefer current properties for shared access functions
An access function can be associated with multiple properties. QDoc
selects one of these as the primary property when generating links for
undocumented access functions. The selection uses the first property
whose name is a prefix of the function name. When multiple properties
match, the result depends on their order in the associated-property
list, which can make generated links non-deterministic. It can also
select a deprecated property when the same function is shared with a
current property.
This change makes the selection deterministic by applying the following
preferences, in order:
1. Non-deprecated properties
2. Longest matching property-name prefix
3. Alphabetical order as the final tiebreaker
Pick-to: 6.12
Task-number: QTBUG-145807
Task-number: QTBUG-128356
Fixes: QTBUG-150869
Change-Id: If22509f38dfc3323a94dce25726f3f4488b1fa39
Reviewed-by: David Boddie <david.boddie@qt.io>
Reviewed-by: Topi Reinio <topi.reinio@qt.io>