qt5base-lts/tests/auto/corelib
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
..
animation Fix warning when printing of qsizetype 2020-07-26 17:39:31 +02:00
global Remove const volatile qualifier on return type in test 2020-08-04 05:12:31 +00:00
io QFileInfo: purge deprecated API 2020-08-07 17:44:51 +02:00
itemmodels Restrict QVariant::isNull() behavior 2020-08-13 08:48:32 +02:00
kernel Restrict QVariant::isNull() behavior 2020-08-13 08:48:32 +02:00
mimetypes Fix warnings about unused expression results in tests 2020-07-29 14:33:29 +02:00
plugin Fix warning when comparing qsizetype to result of sizeof 2020-07-26 18:06:21 +02:00
serialization Restrict comparison of variants 2020-08-13 08:48:19 +02:00
statemachine CMake: Regenerate subdir test projects 2020-07-09 09:38:39 +02:00
text tst_QStringConverter: fix some deprecation warnings 2020-08-07 17:44:01 +02:00
thread CMake: Properly handle CONFIG += thread aka Threads::Threads 2020-08-06 19:15:39 +02:00
time Sort out the overflow cases in tst_QDateTime 2020-08-11 11:21:46 +02:00
tools QMap: fix insert() rvalue overloads 2020-08-06 19:15:39 +02:00
.prev_CMakeLists.txt Move QTextCodec support out of QtCore 2020-06-20 02:04:38 +02:00
CMakeLists.txt Move QTextCodec support out of QtCore 2020-06-20 02:04:38 +02:00
corelib.pro Move QTextCodec support out of QtCore 2020-06-20 02:04:38 +02:00