qt5base-lts/tests/auto
Morten Johan Sørvig 89ef515177 Add JSON parsing support to qmake.
Add qjson* implementation files from corelib/json
to the qmake build. Add a read-only compile mode,
enabled by defining QT_JSON_READONLY.

Add qmake built-in function parseJson(file, into)
which parses a json file into the given variable.

qmake uses a flat key -> value-list implementation
for storing variables, which means that some hackery
is need to represent arbitrarily nested JSON. Use a
special "_KEYS_" variable for arrays and objects:

Arrays:
["item1", "item2"]
$${array._KEYS_} -> 0 1 2
$${array.0} -> "item1"
$${array.1} -> "item2"

Objects:
{ "key1" : "value1", "key2" : "value2" }
$${object._KEYS_} -> key1 key2
$${object.key1} -> value1
$${object.key2} -> value2

Change-Id: I0aa2e4e4ae14fa25be8242bc16d3cffce32504d2
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
2013-10-17 08:07:25 +02:00
..
android Android: Add test script based on androiddeployqt 2013-10-16 08:39:57 +02:00
bic/data test: Add 5.1.0 bic data for linux-gcc-ia32 2013-07-08 21:47:36 +02:00
cmake Teach CMake about Qt 5 plugins. 2013-09-10 14:38:18 +02:00
compilerwarnings/data Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
concurrent QtConcurrent tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:25 +01:00
corelib QDateTime - Fix toTimeSpec() for invalid datetimes 2013-10-16 21:29:17 +02:00
dbus don't erroneously claim that gui support is needed 2013-10-16 17:10:15 +02:00
gui Account for QPolygonF type when loading/saving the QVariant 2013-10-15 08:14:48 +02:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
installed_cmake Add a unit test for testing Qt in its install location. 2013-07-02 23:08:54 +02:00
network tst_QNetworkReply: Don't remove file if never created 2013-09-26 08:40:38 +02:00
opengl Fixed tst_qgl for fullscreen platforms 2013-08-07 09:01:36 +02:00
other don't erroneously claim that gui support is needed 2013-10-16 17:10:15 +02:00
printsupport When calling setPageSizeMM then the size needs to be passed as MM 2013-09-23 23:17:35 +02:00
shared Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
sql don't unnecessarily use qtgui 2013-10-08 20:39:03 +02:00
testlib support building with -no-gui 2013-10-11 21:03:30 +02:00
tools Add JSON parsing support to qmake. 2013-10-17 08:07:25 +02:00
widgets Only emit messageChanged() if the message has actually changed 2013-10-15 13:01:59 +02:00
xml tests: Make the QT assignments more explicit 2013-08-21 19:05:52 +02:00
auto.pro Make the CMake tests run sequentially, not in parallel. 2013-07-08 14:48:03 +02:00
network-settings.h network test settings: support newer FTP server versions 2013-08-28 12:45:34 +02:00
qtest-config.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
test.pl Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00