mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-25 10:46:15 +03:00
Use valid event type in QWidget::enterEvent()
This commit is contained in:
parent
09da6828b8
commit
a8127d6102
2 changed files with 13 additions and 5 deletions
|
@ -143,7 +143,11 @@ bool PiecesBar::event(QEvent *e)
|
|||
return base::event(e);
|
||||
}
|
||||
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
|
||||
void PiecesBar::enterEvent(QEnterEvent *e)
|
||||
#else
|
||||
void PiecesBar::enterEvent(QEvent *e)
|
||||
#endif
|
||||
{
|
||||
m_hovered = true;
|
||||
base::enterEvent(e);
|
||||
|
|
|
@ -54,15 +54,19 @@ public:
|
|||
virtual void clear();
|
||||
|
||||
// QObject interface
|
||||
virtual bool event(QEvent*) override;
|
||||
virtual bool event(QEvent *e) override;
|
||||
|
||||
protected:
|
||||
// QWidget interface
|
||||
void enterEvent(QEvent*) override;
|
||||
void leaveEvent(QEvent*) override;
|
||||
void mouseMoveEvent(QMouseEvent*) override;
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
|
||||
void enterEvent(QEnterEvent *e) override;
|
||||
#else
|
||||
void enterEvent(QEvent *e) override;
|
||||
#endif
|
||||
void leaveEvent(QEvent *e) override;
|
||||
void mouseMoveEvent(QMouseEvent *e) override;
|
||||
|
||||
void paintEvent(QPaintEvent*) override;
|
||||
void paintEvent(QPaintEvent *e) override;
|
||||
void requestImageUpdate();
|
||||
|
||||
QColor backgroundColor() const;
|
||||
|
|
Loading…
Reference in a new issue