Port Q_{ENUMS,FLAGS} to Q_{ENUM,FLAG}


Q_{ENUM,FLAG} does what Q_{ENUMS,FLAGS} did, respectively, plus
declaring two friend functions, so the behavior should be the same.

For enums that are declared as flags (with Q_DECLARE_FLAGS(Es, E)), use
Q_FLAG(Es) which will register each enum value with the meta-object
system.

Q_{ENUMS,FLAGS} have been deprecated since at least Qt 6.

Pick-to: 6.11 6.10 6.8 6.5
Change-Id: Id2b0c6c47f5199e897436e9bc1f834887dd6e38d
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
commit7e58401dc606a85f9f6c8d40e2e9ac78003f878f
parentca8d79677e63c3111536f9b03c4184f732810498
authorAhmad Samir <a.samirh78@gmail.com>
committerAhmad Samir <a.samirh78@gmail.com>
commit timeMon, 8 Dec 2025 21:29:19 +0000