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>
| commit | d3090f4ff235d12adba5abe3fc2a19d26b4711fc |
| parent | b7e13d04068810a363ab2bd4822573be76089c97 |
| author | Ahmad Samir <a.samirh78@gmail.com> |
| committer | Ahmad Samir <a.samirh78@gmail.com> |
| commit time | Mon, 8 Dec 2025 21:29:30 +0000 |
- M src/location/declarativemaps/qdeclarativegeocodemodel_p.h
- M src/location/declarativemaps/qdeclarativegeoroutemodel_p.h
- M src/location/declarativemaps/qdeclarativegeoserviceprovider_p.h
- M src/location/declarativeplaces/qdeclarativecategory_p.h
- M src/location/declarativeplaces/qdeclarativeplace_p.h
- M src/location/declarativeplaces/qdeclarativesearchmodelbase_p.h
- M src/location/declarativeplaces/qdeclarativesearchresultmodel_p.h
- M src/location/declarativeplaces/qdeclarativesupportedcategoriesmodel_p.h
- M src/location/maps/qgeomaneuver.h
- M src/location/maps/qgeomap_p.h
- M src/location/maps/qgeomaptype_p.h
- M src/location/maps/qgeorouteparser_p.h
- M src/location/maps/qgeoserviceprovider.h