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

Port away from deprecated QWheelEvent::delta()

parent a82473dc
Pipeline #168059 passed with stage
in 57 seconds
......@@ -179,7 +179,7 @@ void mapWidget::wheelEvent(QWheelEvent *e)
}
else if ( e->modifiers() == Qt::ControlModifier )
{
int delta = e->delta();
int delta = e->angleDelta().y();
if ( delta != 0 )
{
const qreal rescale = pow(2, qreal(delta/120)/2.0);
......
......@@ -353,7 +353,7 @@ void placeMapWidget::wheelEvent(QWheelEvent *e)
}
else if ( e->modifiers() == Qt::ControlModifier )
{
int delta = e->delta();
int delta = e->angleDelta().y();
if ( delta != 0 )
{
const qreal rescale = pow(2, qreal(delta/120)/2.0);
......
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