qt5base-lts/tests/auto/corelib
Fabian Kosmale 6892300127 QVariant: Change metatype in convert() even on failure
The documentation of convert promised that “If the cast cannot be
done, the variant is still changed to the requested type”. This was not
the case so far, because we returned too early if canConvert returned
false.
This commit changes the behavior of the method to reflect its
documentation. The documented behavior seems more useful than the
alternative of not changing the metaType, at least for common use cases
inside qtdeclarative.

Change-Id: I09b5a5efb7344e76e93de278e35c7fb2b2f87dcd
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2020-09-30 06:31:36 +00:00
..
animation CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
global Add {add,sub,mul}_overflow detection when one operand is a constant 2020-09-29 14:55:48 -07:00
io CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
itemmodels CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
kernel QVariant: Change metatype in convert() even on failure 2020-09-30 06:31:36 +00:00
mimetypes CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
plugin CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
serialization QJsonObject: fix sorting after parsing from JSON text 2020-09-29 16:14:37 -07:00
text Add unit test to check emoji handling in date-time parsing 2020-09-23 16:59:07 +02:00
thread CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
time QDateTime change documentation to reflect usage of C locale 2020-09-23 17:33:39 +02:00
tools Replace Q_REQUIRED_RESULT with [[nodiscard]] 2020-09-25 07:10:45 +02:00
.prev_CMakeLists.txt Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
CMakeLists.txt Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
corelib.pro Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00