diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2019-10-15 16:37:52 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2019-11-23 02:14:42 +0100 |
commit | bcbefcd6457adac9d92a410b1f7250ed5b0e8955 (patch) | |
tree | d6e51e086bb744696feac372793641e04bfccfa2 /examples | |
parent | 8027fb60dd1c1e4349eb1ac782d1197e784d6081 (diff) |
QCborValue: Extend the constructor to also create extended types
We already did that when parsing from CBOR binary data, so the code was
already present.
[ChangeLog][QtCore][QCborValue] The constructor taking a CBOR tag and a
value to be tagged now attempts to convert to a QCborValue extended
type. For example, if the tag is 0 (UnixTime_t) and the payload is a
number, the resulting object will become tag 1 (DateTime) and the
payload will be the the ISO-8601 date/time string.
Fixes: QTBUG-79196
Change-Id: I6edce5101800424a8093fffd15cdf650fb2fc45c
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions