Closed SchrodingersGat closed 4 years ago
This PR fixed a "bug" which exists between encoding and decoding boolean values from a QVariantMap
true
false
e.g. here is how decoding from a map to a bool currently works:
and how the encoding currently works:
So the simple method here is to simply enforce encoding to an integer as follows:
This PR fixed a "bug" which exists between encoding and decoding boolean values from a QVariantMap
true
orfalse
true
andfalse
cannot be converted from an integere.g. here is how decoding from a map to a bool currently works:
and how the encoding currently works:
Changes
So the simple method here is to simply enforce encoding to an integer as follows: