Method enterEvent() expects QEnterEvent in Qt6.

This commit is contained in:
Roman Telezhynskyi 2023-02-09 15:50:27 +02:00
parent 0a6c560382
commit 980b1b5837
2 changed files with 8 additions and 0 deletions

View File

@ -338,7 +338,11 @@ bool FancyTabBar::event(QEvent *event)
//---------------------------------------------------------------------------------------------------------------------
// Resets hover animation on mouse enter
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
void FancyTabBar::enterEvent(QEnterEvent *e)
#else
void FancyTabBar::enterEvent(QEvent *e)
#endif
{
Q_UNUSED(e)
m_hoverRect = QRect();

View File

@ -88,7 +88,11 @@ protected:
virtual void paintEvent(QPaintEvent *event) override;
virtual void mousePressEvent(QMouseEvent *) override;
virtual void mouseMoveEvent(QMouseEvent *) override;
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
virtual void enterEvent(QEnterEvent *) override;
#else
virtual void enterEvent(QEvent *) override;
#endif
virtual void leaveEvent(QEvent *) override;
private slots: