Commit c1dc527f authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Handle Qt6 change around enterEvent

parent 6a174233
Pipeline #201228 passed with stage
in 2 minutes and 5 seconds
......@@ -326,7 +326,11 @@ void kpGrip::mouseReleaseEvent (QMouseEvent *e)
//---------------------------------------------------------------------
// protected virtual [base QWidget]
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
void kpGrip::enterEvent (QEnterEvent * /*e*/)
#else
void kpGrip::enterEvent (QEvent * /*e*/)
#endif
{
#if DEBUG_KP_VIEW_SCROLLABLE_CONTAINER
qCDebug(kpLogMisc) << "kpGrip::enterEvent()"
......
......@@ -103,7 +103,11 @@ protected:
void mouseMoveEvent (QMouseEvent *e) override;
void mouseReleaseEvent (QMouseEvent *e) 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;
protected:
......
......@@ -525,7 +525,11 @@ protected:
protected:
#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;
......
......@@ -207,7 +207,11 @@ void kpView::focusOutEvent (QFocusEvent *e)
// protected virtual [base QWidget]
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
void kpView::enterEvent (QEnterEvent *e)
#else
void kpView::enterEvent (QEvent *e)
#endif
{
#if DEBUG_KP_VIEW && 0
qCDebug(kpLogViews) << "kpView(" << objectName () << ")::enterEvent()";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment