diff options
author | Fawzi Mohamed <fawzi.mohamed@qt.io> | 2020-08-20 13:16:45 +0200 |
---|---|---|
committer | Fawzi Mohamed <fawzi.mohamed@qt.io> | 2020-08-20 15:02:25 +0200 |
commit | f04497b5d24e908beb50dff04b0a03358d7993c7 (patch) | |
tree | d6042cbf0aac5a7520ac33ac2fb89d0bcc7c0062 /tests/auto/qml/qmlformat | |
parent | c1f8a72a43c7487e4ee6952c67269573664d2463 (diff) |
Weak compare for value types in QML
QPoint, QPointF, QRect, QRectF,... are basically equivalent in QML JS
where int and double are stored as double, but QVariant now has a
stricter equality comparison, which breaks code.
Make QQmlValueTypeWrapper::isEqual perform the weaker comparison.
This fixes a regression in tst_qqmlvaluetypes and
tst_qqmlvaluetypeproviders which blocked CI.
Change-Id: I0fe1cab17092190ff6cf2a01310943d72d932073
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlformat')
0 files changed, 0 insertions, 0 deletions