qt6-bb10/src
Volker Hilsheimer 1fe60cbcc3 QVariant: always compare floating point with double precision
When Qt is configured with `-qreal float`, then we should still compare
QVariants containing floating point values with the full precision of
the stored type, and not cast to qreal (ie. float).

Cast all floating point types up to double, which is the highest-
precision floating point type we support in Qt. This might have a small
performance impact when compiling with `-qreal float`, if the FPU does
not perform well with double-precision floating point values.

We don't test any `-qreal float` configurations in CI, so not adding
a unit test for this.

Fixes: QTBUG-114991
Pick-to: 6.6 6.5 6.2
Change-Id: I198ec2c39913b501ef2fe99ae3048b160baa1fd8
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2023-07-05 06:41:52 +02:00
..
3rdparty Update bundled libpng to version 1.6.40 2023-07-04 15:42:01 +02:00
android Android: improve screen size and physical size calculation 2023-06-10 11:12:39 +03:00
assets Add XDG theme file for example icons 2023-06-26 17:32:10 +00:00
concurrent Use a global value for warning limit when testing documentation in CI 2023-06-27 15:12:31 +00:00
corelib QVariant: always compare floating point with double precision 2023-07-05 06:41:52 +02:00
dbus Use a global value for warning limit when testing documentation in CI 2023-06-27 15:12:31 +00:00
entrypoint src: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-10 23:36:51 +01:00
gui Make while iterations over height safer 2023-07-05 01:25:53 +02:00
network QtNetwork: replace clashing statics with lambdas II: isSeparator 2023-07-04 18:16:38 +02:00
opengl Docs: Add link to OPenGL examples to OpenGL index 2023-06-30 18:46:55 +02:00
openglwidgets Make QOpenGLWidget work with QT_WIDGETS_HIGHDPI_DOWNSCALE 2023-05-24 06:55:57 +00:00
platformsupport QtGui: code tidies: use the 4-arg connect overload 2023-06-28 01:32:10 +02:00
plugins QIbaseResult: qWarning, when disallowed null parameter becomes zero 2023-07-04 23:31:51 +02:00
printsupport Use a global value for warning limit when testing documentation in CI 2023-06-27 15:12:31 +00:00
sql Say hello to QtVFS for SQLite3 2023-07-02 17:12:02 +00:00
testlib Silence compiler warning about unreachable code 2023-06-30 17:41:20 +02:00
tools Install the missing deprecated header files 2023-07-04 16:53:16 +02:00
widgets QWidgetTextControl: share setActionIcon() with QLineEdit 2023-07-05 01:25:54 +02:00
xml Use a global value for warning limit when testing documentation in CI 2023-06-27 15:12:31 +00:00
CMakeLists.txt Add Qt icon library for examples 2023-04-22 18:14:38 +03:00