fuzzgen: fix codegen for unqualified nested types and Q<Class>:: value types


Three MSVC-specific build failures in the generated fuzz suite:

1. Unqualified nested types in const-ref parameters: fuzzExprForType
   stripped "const Key &" to bare "Key" and returned "Key{}" which is
   undeclared outside the class scope (MSVC C2065).  Fix: after stripping
   const/ref qualifiers, qualify single-word uppercase non-Qt types with
   className:: (e.g. "Key" → "QPixmapCache::Key").

2. Same issue for non-const ref local variable declarations in
   buildDirectFuzzFunction: emitted bare type names without className::
   prefix.

3. Q<Class>:: value types (e.g. QFont::Tag) caught by the catch-all
   "::" check and emitted as static_cast<QFont::Tag>(byte), which fails
   because QFont::Tag has no integral constructor (MSVC C2440).  Fix:
   before the generic "::" path, handle Q<X>:: types with T{} (default
   construction, valid for both enum and value-class nested types).

Change-Id: Icab48ea8ae7807f64b1595d183bb8c71013dcdea
Reviewed-by: Frederic Lefebvre <frederic.lefebvre@qt.io>
commit2a0ac45872062870936c0873a76d5857016e63b8
parentaf72904e88ef16d4a85273d8a3323571a846c1d3
authorAxel Spoerl <axel.spoerl@qt.io>
committerAxel Spoerl <axel.spoerl@qt.io>
commit timeWed, 15 Jul 2026 14:07:29 +0000