Browse Source

Suppress conversion warning

This fixes MSVC warning C4305: 'argument': truncation from 'double' to 'float'.
`QColor::setAlphaF()` parameter has been changed to `float` in Qt6.
adaptive-webui-19844
Chocobo1 3 years ago
parent
commit
489d88e02a
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 2
      src/gui/properties/piecesbar.cpp

2
src/gui/properties/piecesbar.cpp

@ -186,7 +186,7 @@ void PiecesBar::paintEvent(QPaintEvent *) @@ -186,7 +186,7 @@ void PiecesBar::paintEvent(QPaintEvent *)
if (!m_highlightedRegion.isNull())
{
QColor highlightColor {this->palette().color(QPalette::Active, QPalette::Highlight)};
highlightColor.setAlphaF(0.35);
highlightColor.setAlphaF(0.35f);
QRect targetHighlightRect {m_highlightedRegion.adjusted(borderWidth, borderWidth, borderWidth, height() - 2 * borderWidth)};
painter.fillRect(targetHighlightRect, highlightColor);
}

Loading…
Cancel
Save