QDoc: Keep admonitions inside enum value descriptions


Documentation authors use \note, \warning, and \important
commands inside \value descriptions to provide essential
context for individual enum values. QDoc prematurely closes
the value list when it encounters these commands, causing
the admonition text to render outside its associated value
entry. This affects real-world documentation such as
Qt::WindowType, where multiple notes appear within a single
\value description.

Admonitions are inline annotations that belong to the value
they follow, unlike structural commands such as sections or
tables that genuinely end a value list. This distinction
lets admonitions stay within their value entry while
preserving the existing behavior for structural commands
that should close the list.

Pick-to: 6.11
Fixes: QTBUG-145755
Change-Id: I5a843f274c922ad88d7ea33cb6ca0db63e61c2e9
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
Reviewed-by: David Boddie <david.boddie@qt.io>
commitb0b7a37813aa2c4bde4d45c0b33b796d767eef22
parentf7278ebfac5fbbbac1820f5ea06e48d5fbdb7934
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeTue, 14 Apr 2026 08:16:21 +0000