Qt: Fix deprecated use of MidButton

MidButton has been deprecated since Qt 4.7. The replacement is
MiddleButton.
This commit is contained in:
Léo Lam
2020-12-16 14:44:25 +01:00
parent efdb620783
commit 6018525992
2 changed files with 2 additions and 2 deletions

View File

@ -247,7 +247,7 @@ void RenderWidget::OnFreeLookMouseMove(QMouseEvent* event)
// Camera Pitch and Yaw:
g_freelook_camera.Rotate(Common::Vec3{mouse_move.y() / 200.f, mouse_move.x() / 200.f, 0.f});
}
else if (event->buttons() & Qt::MidButton)
else if (event->buttons() & Qt::MiddleButton)
{
// Camera Roll:
g_freelook_camera.Rotate({0.f, 0.f, mouse_move.x() / 200.f});