qt5base-lts/tests/auto/corelib/serialization
Thiago Macieira cb1c66bd20 Fix conversion of QVariant() in QJsonArrays and Objects (through CBOR)
When I wrote the QCborValue to QJsonValue conversion, I used
QJsonValue::Undefined because it allowed to keep some level of
compatibility in CBOR, despite the function documentation saying that
CBOR undefineds became JSON nulls. Which they did.

But when we converted QJson{Array,Object} to be backed by CBOR classes,
that Undefined meant the insertion into the array/object actually
deleted the entry.

[ChangeLog][JSON] Fixed a regression from 5.14 that caused values of
default-constructed QVariants in QVariantLists, QVariantMaps and
QVariantHashes to disappear when converting to JSON via
fromVariant{,List,Map,Hash}.

Fixes: QTBUG-84610
Pick-to: 5.15
Change-Id: Ic0987177fe463f352db9bd84993f116e2bdacc75
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2020-06-24 22:43:57 +02:00
..
json Fix conversion of QVariant() in QJsonArrays and Objects (through CBOR) 2020-06-24 22:43:57 +02:00
qcborstreamreader Port Q_STATIC_ASSERT(_X) to static_assert 2020-06-19 19:38:23 +02:00
qcborstreamwriter cmake: add tests in corelib/serialization 2019-10-07 08:57:31 +00:00
qcborvalue QCborMap: remove the optimization not to detach from non-const find() 2020-06-23 00:29:50 +00:00
qcborvalue_json Fix conversion of QVariant() in QJsonArrays and Objects (through CBOR) 2020-06-24 22:43:57 +02:00
qdatastream Remove QRegExp from QVariant 2020-05-14 12:19:47 +00:00
qdatastream_core_pixmap Merge remote-tracking branch 'origin/dev' into wip/cmake 2019-11-19 13:53:21 +01:00
qtextstream Remove winrt 2020-06-06 20:25:49 +02:00
qxmlstream Move implementation of QVector/List back to qlist.h 2020-06-20 20:01:33 +02:00
cborlargedatavalidation.cpp QCborValue: catch overflow in QByteArray when decoding chunked strings 2020-05-07 07:39:26 -07:00
CMakeLists.txt cmake: add tests in corelib/serialization 2019-10-07 08:57:31 +00:00
serialization.pro Exclude tests that need GUI when GUI isn't available 2019-10-25 11:42:09 +02:00