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.11 6.10 6.8 6.5
Change-Id: I6f976b96508d278505eea13c112fd52a0e8f0aea
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
commit3853dae2c311212071337d61cec1a6a4bedc05bb
parent4bec1d92c31db6d7ed6bc5c2f0df8705b19af47f
authorAhmad Samir <a.samirh78@gmail.com>
committerAhmad Samir <a.samirh78@gmail.com>
commit timeMon, 8 Dec 2025 21:29:53 +0000