qt5base-lts/tests/auto
Lars Knoll 048debe8f9 Restrict QVariant::isNull() behavior
isNull() would forward to the contained type and check that type's
isNull() method for some of the builtin types. Remove that behavior
and only return true in isNull(), if the variant is invalid, doesn't
contain data or contains a null pointer.

In addition, implement more consistent behavior when constructing
a QVariant using the internal API taking a copy from a void *.
isNull() should return true in both cases. This mainly changes behavior
for some corner cases and when using our internal API.

[ChangeLog][Important Behavior Changes] QVariant::isNull()
no longer returns true when the variant contains an object of some
type with an isNull() method, that returns true for the object;
QVariant::isNull() now only returns true when the variant contains
no object or a null pointer.

Change-Id: I3125041c4f8f8618a04aa375aa0a56b19c02dcf5
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2020-08-13 08:48:32 +02:00
..
cmake CMake: Fix configuration of CMake tests in-build-tree 2020-07-20 18:12:23 +02:00
concurrent CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
corelib Restrict QVariant::isNull() behavior 2020-08-13 08:48:32 +02:00
dbus Long Live QMap as a refcounted std::map! 2020-08-06 19:15:39 +02:00
gui Restrict QVariant::isNull() behavior 2020-08-13 08:48:32 +02:00
guiapplauncher
installed_cmake
network QDecompressHelper: Change order of encodings 2020-08-12 08:27:09 +00:00
opengl CMake: Regenerate subdir test projects 2020-07-09 09:38:39 +02:00
other Disable warning about self-move and self-assign-overload 2020-07-26 18:06:34 +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 Restrict QVariant::isNull() behavior 2020-08-13 08:48:32 +02:00
testlib testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
tools cmake support for tst_moc 2020-08-10 12:59:46 +02:00
widgets Use the new support for comparisons in QMetaType for QVariant 2020-08-13 08:48:03 +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