QDoc: Only add API-level associated properties to functions
Some properties that are associated with functions are not in the public
API. If they are added to functions without any qualification this will
result in links on "all members" pages to non-existent properties.
Checking for the presence of properties in the API eliminates this
problem. It may also expose APIs that should be documented.
Changed the access of addAssociatedProperty() to public for use by the
index file reader.
Change-Id: I5ea6ae7807cf8f96ee7df694ab627cab6471d1aa
Reviewed-by: Paul Wicking <paul.wicking@qt.io>