summaryrefslogtreecommitdiffstats
path: root/mkspecs/macx-ios-clang
diff options
context:
space:
mode:
authorMatt Broadstone <mbroadstone@devonit.com>2014-01-04 16:59:32 -0600
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-16 21:49:26 +0100
commitd6d7624796471b8296fdfa6492b0570bd78e1d93 (patch)
treea009e8b669d0ed4cc86128fa67a7f9211a5f7434 /mkspecs/macx-ios-clang
parent13806e6787502f55754660c6241b31d41e6d9ac7 (diff)
Added constructor to QJsonValue for const char *
For convenience, it reads more easily (and is somewhat expected) to be able to add a string to a QJsonArray like you might with a QVariantList: QJsonArray() << "string". Previously, QJsonValue provided a private void* ctor to explicitly deny this case because it would implicitly convert to a boolean. This ctor provides a const char* ctor (much like QVariant) that interprets the incoming text as utf8 and creates a String type QJsonValue. [ChangeLog][QtCore][QJsonValue] Added constructor to QJsonValue for const char * Change-Id: Icafa954d3da1fb264f9d0fd7cd1a1d2fbbe15095 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'mkspecs/macx-ios-clang')
0 files changed, 0 insertions, 0 deletions