QDoc manual: Modernize use of \badcode


A while back, QDoc's `\code` command was modernized and now takes a
square-bracket argument denoting the preferred marker for the content
fed to the command. This offers `\code [text]` as a preferable option to
the use of QDoc's `\badcode` command.

This change updates parts of QDoc's own documentation to use the
newer (arguably better) syntax.

Change-Id: Iec8d3383cec8bc2e7531eaf4d1f22df05fdf0117
Reviewed-by: David Boddie <david.boddie@qt.io>
commit2a836fe31bb7bc5115de9e9ff56904fd4f249fd4
parent8d97451d74e94b3d4114f5d34473f3da46e4502c
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeMon, 28 Sep 2026 13:05:24 +0000