qt5base-lts/tests/auto
Lars Knoll 9d36032370 Implement QMetaType::canConvert() and use it in QVariant
Use the fact that we return the conversion function as a lambda
to find out reliably whether a conversion between two types
can be done.

This requires some minor adjustments to our tests:

* Nothing can convert to an unknown type and vice versa
* Adjust results to the fact that we don't convert from char
  to QString anymore (where the old method was incorrect)
* QStringList->QString requires some adjustments, as we only
  convert if the string list has exactly one element. For now
  we return true in canConvert(), but the conversion behavior
  in this case is something we should rethink, as it is very
  surprising.

Change-Id: I3f5f87ee9cb99d690f5a7d13b13d6a6313d8038e
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
2020-08-24 00:18:24 +02:00
..
cmake CMake: Fix configuration of CMake tests in-build-tree 2020-07-20 18:12:23 +02:00
concurrent QtConcurrent: Introduce runWithPromise() 2020-08-19 12:46:10 +02:00
corelib Implement QMetaType::canConvert() and use it in QVariant 2020-08-24 00:18:24 +02:00
dbus Long Live QMap as a refcounted std::map! 2020-08-06 19:15:39 +02:00
gui Automatically register data/debug stream operations in QMetaType 2020-08-24 00:17:03 +02:00
guiapplauncher
installed_cmake
network QDecompressHelper: Introduce zstd support 2020-08-14 13:17:11 +02:00
opengl CMake: Regenerate subdir test projects 2020-07-09 09:38:39 +02:00
other Generate less code when creating QMetaTypeInterfaces 2020-08-24 00:17:04 +02:00
printsupport CMake: Regenerate subdir test projects 2020-07-09 09:38:39 +02:00
shared QWindowsFontDatabase: Check preferred family names for all fonts 2019-11-29 09:31:21 +01:00
sql Interbase: Fix tests when running against Firebird 2020-08-23 00:22:04 +02:00
testlib Remove QVariant(int type, void *data, ...) constructor 2020-08-15 10:56:29 +02:00
tools Fix warnings in tst_moc 2020-08-23 01:18:13 +02:00
widgets Move QStringRef and remains to Qt5Compat 2020-08-20 00:58:13 +02:00
xml Disable deprecation warnings in some tests 2020-07-29 14:33:23 +02:00
.prev_CMakeLists.txt CMake: Regenerate subdir test projects 2020-07-09 09:38:39 +02:00
auto.pro CMake: Get tests/auto/cmake tests working 2020-07-17 09:43:04 +02:00
CMakeLists.txt CMake: Get tests/auto/cmake tests working 2020-07-17 09:43:04 +02:00
network-settings.h Revert "QAbstractSocket: deprecate 'error' member-function" 2020-02-26 23:07:52 +03:00