Readd Q_ENUM for enums declared as QFlags
Amends d3090f4ff235d12adba5abe3fc2a19d26b4711fc, which replaced Q_ENUMS
with Q_FLAG for enums declard as QFlags. Q_FLAG registers the individual
enum values with the meta-type system, but doesn't register the enum
type itself, which breaks some functionality for the enum type wrt. the
meta-type system, e.g. `QMetaEnum::fromType`.
Fix the issue by adding Q_ENUM for those enums.
Pick-to: 6.11 6.10 6.8 6.5
Change-Id: Ia07985dffc58c26881147194b1fa922643c3f8b6
Reviewed-by: Marc Mutz <marc.mutz@qt.io>