mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 13:23:34 -07:00
Fix typo "Highlited" (#14956)
This commit is contained in:
parent
bd7dc8b5e7
commit
e432d67b3b
1 changed files with 3 additions and 3 deletions
|
@ -315,10 +315,10 @@ void PiecesBar::highlightFile(int imagePos)
|
||||||
BitTorrent::TorrentInfo::PieceRange filePieces = m_torrent->info().filePieces(fileIndices.first());
|
BitTorrent::TorrentInfo::PieceRange filePieces = m_torrent->info().filePieces(fileIndices.first());
|
||||||
|
|
||||||
ImageRange imageRange = transform.imagePos(filePieces);
|
ImageRange imageRange = transform.imagePos(filePieces);
|
||||||
QRect newHighlitedRegion {imageRange.first(), 0, imageRange.size(), m_image.height()};
|
QRect newHighlightedRegion {imageRange.first(), 0, imageRange.size(), m_image.height()};
|
||||||
if (newHighlitedRegion != m_highlightedRegion)
|
if (newHighlightedRegion != m_highlightedRegion)
|
||||||
{
|
{
|
||||||
m_highlightedRegion = newHighlitedRegion;
|
m_highlightedRegion = newHighlightedRegion;
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue