qt5base-lts/tests/auto/corelib
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
..
animation Introduce QInputDevice hierarchy; replace QTouchDevice 2020-06-16 22:06:56 +02:00
global Port Q_STATIC_ASSERT(_X) to static_assert 2020-06-19 19:38:23 +02:00
io Move QTextCodec support out of QtCore 2020-06-20 02:04:38 +02:00
itemmodels Remove the deprecated QDirModel 2020-06-04 19:11:19 +02:00
kernel Move implementation of QVector/List back to qlist.h 2020-06-20 20:01:33 +02:00
mimetypes QMimeType::suffixForFileName shouldn't lowercase the file suffix 2020-06-01 13:36:05 +02:00
plugin CMake: Fix failing plugin tests on MinGW 2020-06-09 09:34:17 +02:00
serialization Fix conversion of QVariant() in QJsonArrays and Objects (through CBOR) 2020-06-24 22:43:57 +02:00
statemachine Merge remote-tracking branch 'origin/5.15' into dev 2020-02-13 18:31:40 +01:00
text QString: add char8_t overload of fromUtf8() 2020-06-23 06:31:28 +00:00
thread Port Q_STATIC_ASSERT(_X) to static_assert 2020-06-19 19:38:23 +02:00
time Use ranged for loops in place of foreach in QTimeZone tests 2020-06-23 16:59:45 +02:00
tools QPair: add a check that SB works as expected 2020-06-24 17:49:35 +02:00
.prev_CMakeLists.txt Move QTextCodec support out of QtCore 2020-06-20 02:04:38 +02:00
CMakeLists.txt Move QTextCodec support out of QtCore 2020-06-20 02:04:38 +02:00
corelib.pro Move QTextCodec support out of QtCore 2020-06-20 02:04:38 +02:00