qt5base-lts/tests/auto/corelib
Thiago Macieira 74fac865cf QMetaType: add registerType() and qRegisterMetaType(QMetaType)
This also rewrites QMetaType::id() on top of the helper, with the benefit
of calling a member static function, so QMetaType doesn't need to be
spilled onto the stack. In some upcoming changes I need to ensure that
QMetaTypes are registered so they can be found by name and I'd like to
have a dedicated function name for that, instead of calling .id().

Since I needed to add docs for the new function, I've updated for the
old one too.

[ChangeLog][QMetaType] Added QMetaType::registerType() and an overload
of qRegisterMetaType() taking QMetaType (the two functions do the same
thing). These two functions ensure a given QMetaType is registered with
the Qt global registry, so they can be found by name later. Using
qRegisterMetaType<T>() also accomplishes the same thing, but is slightly
better for completely generic code because it will avoid emitting the
registration for built-in types.

Change-Id: I3859764fed084846bcb0fffd170351d606034c22
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2022-07-26 20:12:30 -07:00
..
animation Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
global function_ref test: Don't take reference of temporaries 2022-06-20 19:52:01 +00:00
io QProcess: skip processesInMultipleThreads test on emulators 2022-07-13 21:02:01 +02:00
itemmodels Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
kernel QMetaType: add registerType() and qRegisterMetaType(QMetaType) 2022-07-26 20:12:30 -07:00
mimetypes Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
platform Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
plugin Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
serialization QCursor: add missing QT_DEPRECATED_VERSION_X_6_0 for deprecated methods 2022-07-21 19:59:07 +02:00
text QByteArray: fix base64 round-trip w/more than 2GiB data 2022-07-26 02:06:17 +02:00
thread QMutex: limit moreStress test to idealThreadCount threads 2022-07-20 06:57:43 +02:00
time Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
tools Increase timeout of slow test for ASAN-enabled build 2022-06-15 23:58:16 +02:00
CMakeLists.txt Add tests for QAndroidApplication's sdkVersion and activity 2021-05-13 01:41:36 +03:00