QDoc: Qualify template enum value table terms


The template generators render the constant column of an enum value
table exactly as the `\value` argument was authored. That omits the
scope entirely, so the template output shows bare constant names. The
legacy generators' output shows the same constants qualified with the
scope in which the enum was declared.

This change ensures that the TemplateGenerator's value tables also
qualify values with the enum's declaration scope. A related nonmember
keeps the scope in which its enum was declared, scoped enums include
the enum name, and QML values that already carry a prefix keep it.
Value tables of non-enum nodes, such as enumeration properties, are
left as authored. The test expectations document the qualified names
for related, nested, and QML enums.

Fixes: QTBUG-151108
Pick-to: 6.12
Change-Id: I8dfc1cb2cd56be249b46be4d237c7a3abe7307ce
Reviewed-by: David Boddie <david.boddie@qt.io>
commit57ec713f38662580535b08bfcf0b106f474e250d
parentaaa1ba6136331d22b60aeb1b28ece35a9156b52e
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeMon, 5 Oct 2026 16:50:29 +0000