Port Q_ENUMS/FLAGS to Q_ENUM/FLAG


Q_{ENUM,FLAG} does what Q_{ENUMS,FLAGS} did 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/Q_FLAGS have been deprecated since at least Qt 6.

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