mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-24 10:16:00 +03: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue