50 explicit PiecesBar(QWidget *parent =
nullptr);
57 virtual bool event(QEvent *
e)
override;
61 #if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
79 static QRgb
mixTwoColors(QRgb rgb1, QRgb rgb2,
float ratio);
static QRgb mixTwoColors(QRgb rgb1, QRgb rgb2, float ratio)
virtual bool event(QEvent *e) override
QColor colorBoxBorderColor() const
QColor pieceColor() const
QColor backgroundColor() const
void requestImageUpdate()
void mouseMoveEvent(QMouseEvent *e) override
const BitTorrent::Torrent * m_torrent
virtual bool updateImage(QImage &image)=0
PiecesBar(QWidget *parent=nullptr)
void enterEvent(QEnterEvent *e) override
void highlightFile(int imagePos)
QVector< QRgb > m_pieceColors
static constexpr int borderWidth
void showToolTip(const QHelpEvent *)
void paintEvent(QPaintEvent *e) override
void setTorrent(const BitTorrent::Torrent *torrent)
void leaveEvent(QEvent *e) override
virtual QString simpleToolTipText() const =0
QRect m_highlightedRegion
const QVector< QRgb > & pieceColors() const
QColor borderColor() const