Method enterEvent() expects QEnterEvent in Qt6.
This commit is contained in:
parent
0a6c560382
commit
980b1b5837
|
@ -338,7 +338,11 @@ bool FancyTabBar::event(QEvent *event)
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
// Resets hover animation on mouse enter
|
// 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)
|
void FancyTabBar::enterEvent(QEvent *e)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
Q_UNUSED(e)
|
Q_UNUSED(e)
|
||||||
m_hoverRect = QRect();
|
m_hoverRect = QRect();
|
||||||
|
|
|
@ -88,7 +88,11 @@ protected:
|
||||||
virtual void paintEvent(QPaintEvent *event) override;
|
virtual void paintEvent(QPaintEvent *event) override;
|
||||||
virtual void mousePressEvent(QMouseEvent *) override;
|
virtual void mousePressEvent(QMouseEvent *) override;
|
||||||
virtual void mouseMoveEvent(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;
|
virtual void enterEvent(QEvent *) override;
|
||||||
|
#endif
|
||||||
virtual void leaveEvent(QEvent *) override;
|
virtual void leaveEvent(QEvent *) override;
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user