Commit 02850dea authored by Nicolas Fella's avatar Nicolas Fella Committed by Albert Astals Cid
Browse files

Handle Qt6 enterEvent change

parent 6f1ab427
Pipeline #168052 passed with stage
in 56 seconds
......@@ -362,7 +362,11 @@ void placeMapWidget::wheelEvent(QWheelEvent *e)
}
}
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
void placeMapWidget::enterEvent(QEnterEvent*)
#else
void placeMapWidget::enterEvent(QEvent*)
#endif
{
if (p_currentDivisionItem)
{
......
......@@ -53,7 +53,11 @@ Q_OBJECT
void mousePressEvent(QMouseEvent *e) override;
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;
void wheelEvent(QWheelEvent *e) override;
void resizeEvent(QResizeEvent *e) override;
......
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