mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-09-03 09:32:00 +00:00
Suppress conversion warning
This fixes MSVC warning C4305: 'argument': truncation from 'double' to 'float'. `QColor::setAlphaF()` parameter has been changed to `float` in Qt6.
This commit is contained in:
parent
dff39ffd20
commit
489d88e02a
@ -186,7 +186,7 @@ void PiecesBar::paintEvent(QPaintEvent *)
|
|||||||
if (!m_highlightedRegion.isNull())
|
if (!m_highlightedRegion.isNull())
|
||||||
{
|
{
|
||||||
QColor highlightColor {this->palette().color(QPalette::Active, QPalette::Highlight)};
|
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)};
|
QRect targetHighlightRect {m_highlightedRegion.adjusted(borderWidth, borderWidth, borderWidth, height() - 2 * borderWidth)};
|
||||||
painter.fillRect(targetHighlightRect, highlightColor);
|
painter.fillRect(targetHighlightRect, highlightColor);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user