qt5base-lts/tests/auto
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
..
bic/data Add BiC data for the new way to do BiC testing 2022-05-12 13:33:41 +03:00
cmake Fix memory leaks 2022-06-15 23:58:16 +02:00
concurrent QtConcurrent: prevent conversion of ReduceOption to initial value 2022-05-20 17:11:15 +02:00
corelib QMetaType: add registerType() and qRegisterMetaType(QMetaType) 2022-07-26 20:12:30 -07:00
dbus CMake: Make tst_qdbusabstractadaptor depend on qmyserver 2022-07-26 14:33:42 +02:00
gui tst_QMetaType: merge flags and flagsStaticless 2022-07-26 14:33:21 -07:00
guiapplauncher Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
network tst_qnetworkreply: replace server.pem/key pair 2022-07-15 22:42:43 +02:00
opengl Remove the qmake project files 2021-01-07 15:32:28 +01:00
other Fix flakiness of test on OpenSUSE/KDE 2022-07-26 16:33:22 +02:00
printsupport Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
shared Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
sql Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
testlib Test skip and fail in cleanup() as well as in cleanupTestCase() 2022-07-25 19:29:07 +02:00
tools moc: Allow writing properties through bindables 2022-07-08 09:38:27 +02:00
wasm Port promise tests to qtwasmtestlib 2022-07-06 17:56:57 +02:00
widgets QAction: add QT_DEPRECATED_VERSION_6_0 to deprecated methods 2022-07-21 23:12:15 +02:00
xml QDomDocument: add a missing full-stop to a warning message 2022-07-12 13:24:57 +02:00
CMakeLists.txt Only configure one test for wasm 2022-05-12 18:55:04 +02:00
network-settings.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00