QDoc: Parse \details argument as a brace-delimited paragraph
The \details command takes an optional argument that contains the
summary string, i.e. text for the HTML <summary> element.
Previously, formatting commands could not be used within the argument
as it was parsed simply as a (potentially) brace-delimited string.
Formatting commands such as \notranslate, \e (emphasis), or \tm
(trademark) within the argument caused a QDoc warning.
As the HTML spec allows any paragraph content to appear in a <summary>,
make QDoc parse the argument as a proper paragraph. Introduce new Atom
types `DetailsSummaryLeft|Right` and switch to brace-delimited
paragraph parsing mode if an opening brace is detected for the argument.
This preserves the documented syntax but allows rich formatting for the
summary content.
Clean up the \details documentation in the manual and mention the
default summary string.
Fixes: QTBUG-144788
Change-Id: I74f2ee476f1c54634db1b180bf46c29ca05ab744
Reviewed-by: Paul Wicking <paul.wicking@qt.io>