|
|
|
@ -91,10 +91,10 @@ private:
@@ -91,10 +91,10 @@ private:
|
|
|
|
|
virtual bool updateImage(QImage &image) = 0; |
|
|
|
|
void updatePieceColors(); |
|
|
|
|
|
|
|
|
|
const BitTorrent::Torrent *m_torrent; |
|
|
|
|
const BitTorrent::Torrent *m_torrent = nullptr; |
|
|
|
|
QImage m_image; |
|
|
|
|
// buffered 256 levels gradient from bg_color to piece_color
|
|
|
|
|
QVector<QRgb> m_pieceColors; |
|
|
|
|
bool m_hovered; |
|
|
|
|
bool m_hovered = false; |
|
|
|
|
QRect m_highlitedRegion; //!< part of the bar can be highlighted; this rectangle is in the same frame as m_image
|
|
|
|
|
}; |
|
|
|
|