diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-05-26 12:33:24 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-09-11 20:41:15 +0200 |
commit | 5bb4baae0379d5903f547f0399be9620f5ab06a0 (patch) | |
tree | 3a36b2009dfbbdead4e603412886facf6f88b15e /tests/auto/gui/painting/qcolorspace/tst_qcolorspace.cpp | |
parent | 25a01538021c526a86adf47f30c9e5607da51cd4 (diff) |
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 <ch.ehrlicher@gmx.de>
Diffstat (limited to 'tests/auto/gui/painting/qcolorspace/tst_qcolorspace.cpp')
-rw-r--r-- | tests/auto/gui/painting/qcolorspace/tst_qcolorspace.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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); |