Restore Q_ENUM for enumerations declared as QFlags


Q_FLAG(Es) registers the individual enumeration values with the
meta-type system, but not the enumeration type itself. This could break
using the enum type with the meta-type system, e.g.
QMetaEnum::fromType<E>

Amends 7e58401dc606a85f9f6c8d40e2e9ac78003f878f.

Pick-to: 6.11 6.10 6.8 6.5
Change-Id: Ic73ad6e33e6d3e2a043721f6015c5f21aef024ec
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
commitd02aefb8b3d7bda87858ba57bfab927350df2da4
parent329078e3b60503e0dd5749c5038d6b5ae04930f9
authorAhmad Samir <a.samirh78@gmail.com>
committerAhmad Samir <a.samirh78@gmail.com>
commit timeSat, 13 Dec 2025 15:43:16 +0200