qt5base-lts/tests/auto/corelib
Kent Hansen 0678d7c43c Add QMetaType::type(QByteArray) function
QMetaType::type(const char *) requires that the string argument is
0-terminated. This new overload makes it possible to query the type
of a string with an explicit length.

In particular, QByteArrays constructed by QByteArray::fromRawData(),
for example from a substring of a normalized method signature (the
"int" part of "mySlot(int"), can now be queried without making a copy
of the string.

Also, Qt5 meta-objects represent type names as QByteArray literals,
which can be fed directly to this new QMetaType::type() overload (no
need to call strlen).

Change-Id: I60d35aa6bdc0f77e0997f98b0e30e12fd3d5e100
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2014-10-31 12:17:57 +01:00
..
animation Update license headers and add new license files 2014-09-24 12:26:19 +02:00
codecs Fix doc about the list of supported codecs 2014-10-24 22:23:58 +02:00
global Use Q_DECL_RELAXED_CONSTEXPR in QFlags 2014-10-31 09:54:15 +01:00
io Further limit the sparse file testing on OS X 2014-10-22 23:00:41 +02:00
itemmodels Update license headers and add new license files 2014-09-24 12:26:19 +02:00
json Add conversion between QVariantHash and QJsonObject 2014-10-30 12:14:42 +01:00
kernel Add QMetaType::type(QByteArray) function 2014-10-31 12:17:57 +01:00
mimetypes Update license headers and add new license files 2014-09-24 12:26:19 +02:00
plugin Update license headers and add new license files 2014-09-24 12:26:19 +02:00
statemachine tst_QState: fix memleaks 2014-10-19 13:18:12 +02:00
thread tst_QThreadPool: fix memleak 2014-10-19 13:18:07 +02:00
tools Merge remote-tracking branch 'origin/5.4' into dev 2014-10-20 19:12:25 +02:00
xml Update license headers and add new license files 2014-09-24 12:26:19 +02:00
corelib.pro iOS: Enable building of basic tests 2014-01-22 12:35:17 +01:00