qt6-bb10/tests/auto/corelib/kernel
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
..
qcoreapplication Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qeventdispatcher Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qeventloop Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qmath Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qmetamethod Make Q_INVOKABLE work on Q_GADGET 2014-10-30 13:29:15 +01:00
qmetaobject Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qmetaobjectbuilder Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qmetaproperty Be able to read and write properties to Q_GADGET 2014-10-30 13:29:10 +01:00
qmetatype Add QMetaType::type(QByteArray) function 2014-10-31 12:17:57 +01:00
qmimedata tst_QMimeData: test doesn't require QGuiApplication 2014-10-19 13:17:46 +02:00
qobject Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qpointer tst_QPointer: fix memleak 2014-10-19 13:18:23 +02:00
qsharedmemory Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qsignalblocker Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qsignalmapper Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qsocketnotifier Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qsystemsemaphore Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qtimer Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qtranslator Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qvariant Fix QVariant associative container conversion from built-in types. 2014-10-24 16:27:42 +02:00
qwineventnotifier Update license headers and add new license files 2014-09-24 12:26:19 +02:00
kernel.pro Re-add missing test to kernel.pro 2014-04-02 03:07:12 +02:00