forked from qt-creator/qt-creator
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:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user