summaryrefslogtreecommitdiffstats
path: root/examples/qtconcurrent/imagescaling/imagescaling.cpp
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2023-03-13 09:36:09 +0100
committerFabian Kosmale <fabian.kosmale@qt.io>2023-03-13 20:03:15 +0000
commitb68ad5ef7fd8df0ef4aea03f33dfe05fd8272469 (patch)
tree3e9d249d53e2979d35fd47a37de61e1179b556ba /examples/qtconcurrent/imagescaling/imagescaling.cpp
parent973f499cca4d5017c902249361ec02e025e148cf (diff)
QMetaType: Ensure that qfloat16 gets correct id
Code initially compiled against Qt <= 6.2 does not have a qfloat16 metatype that unconditionally gets registeret from QtBase. Therefore, any preexisting metatype instance for qfloat16 will hit the custom type registry code path. As builtin metatypes are not part of the custom registry, we will create a new type-id, and the type will thus not compare equal to new code using the builtin type-id. Avoid this issue by inserting an alias to the type in QMetaTypeCustomRegistry's constructor. Pick-to: 6.5 dev Change-Id: I825265ad16e274c08b2c4a3a4814475b6c6c6187 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'examples/qtconcurrent/imagescaling/imagescaling.cpp')
0 files changed, 0 insertions, 0 deletions