qt5base-lts/tests/auto/corelib/json
Mitch Curtis 507f1889e2 Add QJsonValue::toInt().
It's a nice feature to have.

MSVC also complains about using doubles to create enum values, so
the ugly workaround is:

enumValue = MyEnum(qRound(json["myEnumValue"].toDouble()));

[ChangeLog][QtCore][QJsonValue]Added QJsonValue::toInt().

Change-Id: I1a200b912abf66b2e96390b1980caff26cfa2685
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
2013-08-27 08:01:29 +02:00
..
bom.json Correctly parse json documents with a leading BOM 2012-05-10 13:50:35 +02:00
json.pro Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
test2.json Import json support from playground/qtbinaryjson 2012-01-24 15:28:20 +01:00
test3.json Add the missing test file and give it a proper name. 2012-01-30 18:48:28 +01:00
test.bjson Fix parsing of unicode escape sequences 2012-03-07 00:03:07 +01:00
test.json Import json support from playground/qtbinaryjson 2012-01-24 15:28:20 +01:00
tst_qtjson.cpp Add QJsonValue::toInt(). 2013-08-27 08:01:29 +02:00