Port Q_ENUMS to Q_ENUM


Q_ENUM does what Q_ENUMS did plus declaring two friend functions, so the
behavior should be the same.

Q_ENUMS has been deprecated since at least Qt 6.

Pick-to: 6.10 6.8 6.5
Change-Id: I9ff5e5268e6871cbe1e7c2dc69b1c4bd25686540
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
commit71fc0122aa9ba5028adb15a7e7e969676853a097
parentc158dc180b32cfb72d2c4e4f12cfd28e99f0ab87
authorAhmad Samir <a.samirh78@gmail.com>
committerAhmad Samir <a.samirh78@gmail.com>
commit timeTue, 25 Nov 2025 19:31:48 +0200