qt6-bb10/tests/auto/corelib
Lars Knoll 95e84c0ea9 Allow qMin, qMax and qBound for types that can be losslessly converted
Add overloads for qMin and friends where the arguments are of different
type, but one can be easily promoted to the other. Return the promoted
type. Promotions are only allowed if both types are either signed,
unsigned or floating point numbers.

This should simplify writing code in many case (as for example
qMin(myint64, 1)) and also help reduce source incompatibilities between
Qt 5 and Qt 6, where the return types for sizes of our containers changes
from int to qsizetype.

Change-Id: Ia6bcf16bef0469ea568063e7c32f532da610d1cd
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2020-06-25 06:20:18 +02:00
..
animation Introduce QInputDevice hierarchy; replace QTouchDevice 2020-06-16 22:06:56 +02:00
global Allow qMin, qMax and qBound for types that can be losslessly converted 2020-06-25 06:20:18 +02:00
io Move QTextCodec support out of QtCore 2020-06-20 02:04:38 +02:00
itemmodels Remove the deprecated QDirModel 2020-06-04 19:11:19 +02:00
kernel Move implementation of QVector/List back to qlist.h 2020-06-20 20:01:33 +02:00
mimetypes QMimeType::suffixForFileName shouldn't lowercase the file suffix 2020-06-01 13:36:05 +02:00
plugin CMake: Fix failing plugin tests on MinGW 2020-06-09 09:34:17 +02:00
serialization Fix conversion of QVariant() in QJsonArrays and Objects (through CBOR) 2020-06-24 22:43:57 +02:00
statemachine Merge remote-tracking branch 'origin/5.15' into dev 2020-02-13 18:31:40 +01:00
text Allow qMin, qMax and qBound for types that can be losslessly converted 2020-06-25 06:20:18 +02:00
thread Port Q_STATIC_ASSERT(_X) to static_assert 2020-06-19 19:38:23 +02:00
time Use ranged for loops in place of foreach in QTimeZone tests 2020-06-23 16:59:45 +02:00
tools QPair: add a check that SB works as expected 2020-06-24 17:49:35 +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