summaryrefslogtreecommitdiffstats
path: root/src/location/maps/qgeomap_p.h
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2025-12-12 21:49:00 +0200
committerAhmad Samir <a.samirh78@gmail.com>2025-12-13 15:43:28 +0200
commit208e42ed8cee577fbbc54e602931bf7454421a02 (patch)
treebbed340f448280c4e8a3ed09e055971ecf50dafc /src/location/maps/qgeomap_p.h
parentfee2641696f51966c4c592e9c1a9d38a4f57123b (diff)
Readd Q_ENUM for enums declared as QFlagsHEADdev
Amends d3090f4ff235d12adba5abe3fc2a19d26b4711fc, which replaced Q_ENUMS with Q_FLAG for enums declard as QFlags. Q_FLAG registers the individual enum values with the meta-type system, but doesn't register the enum type itself, which breaks some functionality for the enum type wrt. the meta-type system, e.g. `QMetaEnum::fromType`. Fix the issue by adding Q_ENUM for those enums. Pick-to: 6.11 6.10 6.8 6.5 Change-Id: Ia07985dffc58c26881147194b1fa922643c3f8b6 Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/location/maps/qgeomap_p.h')
-rw-r--r--src/location/maps/qgeomap_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/location/maps/qgeomap_p.h b/src/location/maps/qgeomap_p.h
index f099c3b0..409ed891 100644
--- a/src/location/maps/qgeomap_p.h
+++ b/src/location/maps/qgeomap_p.h
@@ -62,6 +62,7 @@ public:
SupportsVisibleArea = 0x0010,
};
+ Q_ENUM(Capability)
Q_DECLARE_FLAGS(Capabilities, Capability)
Q_FLAG(Capabilities)