Fix an overloaded-virtual warning for type mismatch of event parameter (Qt6)

This commit is contained in:
Stephan Witt 2021-12-09 21:58:14 +01:00
parent 80a901506b
commit 4665baac46
2 changed files with 5 additions and 1 deletions

View File

@ -54,7 +54,11 @@ void TearOff::mouseReleaseEvent(QMouseEvent * /*event*/)
} }
#if QT_VERSION < 0x060000
void TearOff::enterEvent(QEvent * event) void TearOff::enterEvent(QEvent * event)
#else
void TearOff::enterEvent(QEnterEvent * event)
#endif
{ {
highlighted_ = true; highlighted_ = true;
update(); update();

View File

@ -30,7 +30,7 @@ public:
#if QT_VERSION < 0x060000 #if QT_VERSION < 0x060000
void enterEvent(QEvent *) override; void enterEvent(QEvent *) override;
#else #else
void enterEvent(QEvent *); void enterEvent(QEnterEvent *) override;
#endif #endif
void leaveEvent(QEvent *) override; void leaveEvent(QEvent *) override;
void mouseReleaseEvent (QMouseEvent *) override; void mouseReleaseEvent (QMouseEvent *) override;