qt6-bb10/tests/auto/gui/kernel
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
..
noqteventloop QEventDispatcherWin32: redesign event notifiers activation 2020-07-29 18:34:34 +03:00
qaction Cover more properties in the QAction test 2020-07-17 08:26:56 +02:00
qactiongroup CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qaddpostroutine Merge remote-tracking branch 'origin/5.15' into dev 2020-04-08 20:11:39 +02:00
qbackingstore CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qclipboard Windows QPA: Move mime-type related classes to the new interface 2020-07-28 13:20:23 +02:00
qcursor CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qdrag CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qevent CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qfileopenevent CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qguiapplication CMake: Properly handle CONFIG += thread aka Threads::Threads 2020-08-06 19:15:39 +02:00
qguieventdispatcher CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qguieventloop CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qguimetatype CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qguitimer CMake: Properly handle CONFIG += thread aka Threads::Threads 2020-08-06 19:15:39 +02:00
qguivariant Restrict QVariant::isNull() behavior 2020-08-13 08:48:32 +02:00
qhighdpiscaling Merge remote-tracking branch 'origin/5.15' into dev 2020-04-08 20:11:39 +02:00
qinputdevice CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qinputmethod CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qkeyevent CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qkeysequence Fix warnings about unused variables and functions in tests 2020-07-26 18:06:46 +02:00
qmouseevent Add QPointerEvent::is[Press|Update|Release]Event accessors 2020-08-06 10:23:56 +02:00
qmouseevent_modal CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qopenglwindow CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qpalette CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qpixelformat CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qrasterwindow CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qscreen CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qshortcut CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qsurfaceformat CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qtouchevent Add QPointerEvent::is[Press|Update|Release]Event accessors 2020-08-06 10:23:56 +02:00
qwindow Change QWindow/QWidget::map(To/From)(Global/Parent) to operate in float 2020-07-14 10:25:47 +02:00
.prev_CMakeLists.txt CMake: Skip / ignore failing tests on CMake platforms 2020-07-01 14:55:29 +02:00
CMakeLists.txt CMake: Skip / ignore failing tests on CMake platforms 2020-07-01 14:55:29 +02:00
kernel.pro Begin writing tst_QInputDevice autotest 2020-06-18 08:05:44 +02:00