Commit 77d9ce8c authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Fix QWheelEvent deprecation warning

Not that it matters much for Qt6 porting since the code is 5-only, but it avoids a warning
parent f9cc9f3c
Pipeline #167895 passed with stage
in 1 minute and 57 seconds
......@@ -173,7 +173,7 @@ void mapWidget::wheelEvent(QWheelEvent *e)
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
QWheelEvent reorientedEvent(e->position(), e->globalPosition(), e->pixelDelta().transposed(), -e->angleDelta().transposed(), e->buttons(), Qt::NoModifier, e->phase(), e->inverted(), e->source(), e->pointingDevice());
#else
QWheelEvent reorientedEvent(e->pos(), e->globalPos(), e->pixelDelta().transposed(), e->angleDelta().transposed(), e->buttons(), Qt::NoModifier, e->phase(), e->inverted(), e->source());
QWheelEvent reorientedEvent(e->position(), e->globalPosition(), e->pixelDelta().transposed(), e->angleDelta().transposed(), e->buttons(), Qt::NoModifier, e->phase(), e->inverted(), e->source());
#endif
QGraphicsView::wheelEvent(&reorientedEvent);
}
......
......@@ -347,7 +347,7 @@ void placeMapWidget::wheelEvent(QWheelEvent *e)
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
QWheelEvent reorientedEvent(e->position(), e->globalPosition(), e->pixelDelta().transposed(), -e->angleDelta().transposed(), e->buttons(), Qt::NoModifier, e->phase(), e->inverted(), e->source(), e->pointingDevice());
#else
QWheelEvent reorientedEvent(e->pos(), e->globalPos(), e->pixelDelta().transposed(), e->angleDelta().transposed(), e->buttons(), Qt::NoModifier, e->phase(), e->inverted(), e->source());
QWheelEvent reorientedEvent(e->position(), e->globalPosition(), e->pixelDelta().transposed(), e->angleDelta().transposed(), e->buttons(), Qt::NoModifier, e->phase(), e->inverted(), e->source());
#endif
QGraphicsView::wheelEvent(&reorientedEvent);
}
......
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