Avoid compiler warnings about truncation from double to float

They appeared when compiling against Qt 6

Change-Id: I6bb94168f9776a7fa416d51ff4bb3ca32c9f02fc
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Alessandro Portale
2021-07-09 14:32:41 +02:00
parent 1325be78d9
commit 716f0bd032
3 changed files with 9 additions and 9 deletions

View File

@@ -504,7 +504,7 @@ AnnotationColors &AnnotationColors::getAnnotationColors(const QColor &markColor,
: highClipHsl(backgroundLightness + 0.5);
colors.rectColor = markColor;
colors.rectColor.setAlphaF(0.15);
colors.rectColor.setAlphaF(0.15f);
colors.textColor.setHslF(markColor.hslHueF(),
markColor.hslSaturationF(),