summaryrefslogtreecommitdiff
path: root/src/webchannel/qqmlwebchannel.h
diff options
context:
space:
mode:
authorMilian Wolff <milian.wolff@kdab.com>2016-05-25 16:42:01 +0200
committerMilian Wolff <milian.wolff@kdab.com>2016-05-25 17:06:15 +0000
commit97c876a1353f29ed0129360f013f2529bed69d98 (patch)
treeaf2671db0f408bc88a4fe950a5bbfdcf8a6e3811 /src/webchannel/qqmlwebchannel.h
parentcc0ed84fa6eac8119313543d2dc33658a78e50c7 (diff)
downloadqtwebchannel-97c876a1353f29ed0129360f013f2529bed69d98.tar.gz
Enable calling C++ functions taking QJson arguments via webchannel.
We used to convert the QJsonValue arguments to QVariants, which then failed to call a C++ function which expected on of the three QJson data types, i.e. QJsonValue, QJsonObject or QJsonArray. Instead, we now detect these three cases and manually convert the QJsonValue as needed. [ChangeLog] C++ functions taking arguments of type QJsonValue, QJsonArray or QJsonObject can now be called via the Qt WebChannel. Change-Id: I94e0c8937ca35e2ecd3554f7ddf2d4e5a3328570 Task-number: QTBUG-48198 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/webchannel/qqmlwebchannel.h')
0 files changed, 0 insertions, 0 deletions