diff --git a/src/qml/qmlwaveformoverview.cpp b/src/qml/qmlwaveformoverview.cpp index 6d9e151a647f..fada7aff48ed 100644 --- a/src/qml/qmlwaveformoverview.cpp +++ b/src/qml/qmlwaveformoverview.cpp @@ -255,7 +255,10 @@ QColor QmlWaveformOverview::getRgbPenColor(ConstWaveformPointer pWaveform, int c qreal max = math_max3(red, green, blue); if (max > 0.0) { QColor color; - color.setRgbF(red / max, green / max, blue / max); + color.setRgbF( + static_cast(red / max), + static_cast(green / max), + static_cast(blue / max)); return color; } return QColor();