qt5base-lts/tests/auto
Mikolaj Boc fd45278eaa Specialize MetaObjectForType for non-pointer QObject-derived types
QMetaTypeInterfaceWrapper tries to find the metaObjectFunction using
the MetaObjectForType template. Using SFINAE, for a QObject, it should
resolve to a suitable specialization.

Such a specialization doesn't yet exist. It had to be created.

The following path returns nullptr for registered meta types:

  auto metatype = QMetaType(typeId);
  requestedTestType.metaObject() -> returns nullptr since a bad template
  argument is fed to MetaObjectForType<T> in
  QMetaTypeInterfaceWrapper<IneritingFromQObject>::metaType's static initializer.

Change-Id: I8b31c51e12cb19c333e00480b0177354b910ce1e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2022-07-12 13:24:57 +02: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 Specialize MetaObjectForType for non-pointer QObject-derived types 2022-07-12 13:24:57 +02:00
dbus Fix QDBusInterface crashing with empty path on construction 2022-06-27 14:02:47 +02:00
gui Always update QPalette resolve mask, regardless of QBrush change 2022-07-08 17:09:04 +00:00
guiapplauncher Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
network tst_QSslKey: prepare for the migration to OpenSSL v3 2022-07-05 17:36:03 +02:00
opengl Remove the qmake project files 2021-01-07 15:32:28 +01:00
other unblacklist passing tests 2022 2022-06-23 01:36:01 +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 testlib: Don't print QCOMPARE values if they lack string representation 2022-07-10 03:08:32 +00: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 QKeySequenceEdit: Add a finishing key combinations property 2022-07-09 11:23:49 +00: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