Commit 82f8eaad authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port away from deprecated Qt::MidButton

parent 5ada72de
......@@ -89,7 +89,7 @@ void mapWidget::mousePressEvent(QMouseEvent *e)
}
}
}
else if (e -> button() == Qt::MidButton)
else if (e -> button() == Qt::MiddleButton)
{
p_modeBeforeMidClick = p_mode;
p_mode = WantMove;
......@@ -143,7 +143,7 @@ void mapWidget::mouseReleaseEvent(QMouseEvent *e)
else if ( p_mode == Moving )
{
unsetCursor();
if ( e -> button() == Qt::MidButton )
if ( e -> button() == Qt::MiddleButton )
{
p_mode = p_modeBeforeMidClick;
updateActions();
......
......@@ -266,7 +266,7 @@ void placeMapWidget::mousePressEvent(QMouseEvent *e)
}
}
}
else if (e -> button() == Qt::MidButton)
else if (e -> button() == Qt::MiddleButton)
{
p_modeBeforeMidClick = p_mode;
p_mode = WantMove;
......
Markdown is supported
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