From 5bb4baae0379d5903f547f0399be9620f5ab06a0 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Tue, 26 May 2020 12:33:24 +0200 Subject: Replace qreal with float in QColor There is no reason to use double precision for colors. We at most have 16 significant bits anyway. Change-Id: I8b402cd978675b8ba7248176976d934363212ff1 Reviewed-by: Christian Ehrlicher --- tests/auto/gui/painting/qcolorspace/tst_qcolorspace.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/auto/gui/painting/qcolorspace/tst_qcolorspace.cpp') diff --git a/tests/auto/gui/painting/qcolorspace/tst_qcolorspace.cpp b/tests/auto/gui/painting/qcolorspace/tst_qcolorspace.cpp index 99fb3d3e72..3564700fe5 100644 --- a/tests/auto/gui/painting/qcolorspace/tst_qcolorspace.cpp +++ b/tests/auto/gui/painting/qcolorspace/tst_qcolorspace.cpp @@ -304,10 +304,10 @@ void tst_QColorSpace::loadImage() QVERIFY(defaultProPhotoRgb.iccProfile() != image.colorSpace().iccProfile()); QColorTransform transform = image.colorSpace().transformationToColorSpace(QColorSpace::SRgb); - qreal maxRed = 0; - qreal maxBlue = 0; - qreal maxRed2 = 0; - qreal maxBlue2 = 0; + float maxRed = 0; + float maxBlue = 0; + float maxRed2 = 0; + float maxBlue2 = 0; for (int y = 0; y < image.height(); ++y) { for (int x = 0; x < image.width(); ++x) { QColor p = image.pixelColor(x, y); -- cgit v1.2.3