qt5base-lts/tests/auto/corelib
Lars Knoll 4a69cd7f72 Restrict comparison of variants
Comparing two variants will not try to convert the types
of the variant anymore. Exceptions are when both types are
numeric types or one type is numeric and the other one a
QString. The exceptions are there to keep compatibility with
C++ and to not completely break QSettings (which needs automatic
conversions from QString to numeric types).

[ChangeLog][Important Behavior Changes] Comparing two
variants in Qt 6 will not try attempt any type conversions before
comparing the variants anymore. Instead variants of different type
will not compare equal, with two exceptions: If both types are numeric
types they will get compared according to C++ type promotion rules. If
one type is a QString and the other type a numeric type, a conversion
from the string to the numeric tpye will be attempted.

Fixes: QTBUG-84636
Change-Id: I0cdd0b7259a525a41679fb6761f1e37e1d5b257f
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2020-08-13 08:48:19 +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 Add missing override in tst_QSortFilterProxyModel 2020-07-29 14:33:48 +02:00
kernel Restrict comparison of variants 2020-08-13 08:48:19 +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