qt6-bb10/tests/auto/corelib/global
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
..
q_func_info Regenerate tests/auto/corelib/global 2019-11-12 17:24:56 +00:00
qflags Port Q_STATIC_ASSERT(_X) to static_assert 2020-06-19 19:38:23 +02:00
qfloat16 Merge remote-tracking branch 'origin/dev' into merge-dev 2020-01-24 13:17:33 +01:00
qgetputenv Remove winrt 2020-06-06 20:25:49 +02:00
qglobal Allow qMin, qMax and qBound for types that can be losslessly converted 2020-06-25 06:20:18 +02:00
qglobalstatic Regenerate projects one last time before merge 2020-02-12 17:30:49 +00:00
qhooks Regenerate projects one last time before merge 2020-02-12 17:30:49 +00:00
qlogging Remove winrt 2020-06-06 20:25:49 +02:00
qnumeric Port Q_STATIC_ASSERT(_X) to static_assert 2020-06-19 19:38:23 +02:00
qrand Regenerate tests/auto/corelib/global 2019-11-12 17:24:56 +00:00
qrandomgenerator Port Q_STATIC_ASSERT(_X) to static_assert 2020-06-19 19:38:23 +02:00
qtendian Regenerate projects one last time before merge 2020-02-12 17:30:49 +00:00
qwinregistry Win32: Consolidate registry code 2019-10-14 20:26:42 +02:00
CMakeLists.txt Begin port of qtbase to CMake 2018-11-01 11:48:46 +00:00
global.pro Remove winrt 2020-06-06 20:25:49 +02:00