From d80abeb302327e1592c7cb5fa1ccfa0e90558c3a Mon Sep 17 00:00:00 2001 From: Henrique Gemignani Passos Lima Date: Sun, 20 Jun 2021 23:00:08 +0300 Subject: [PATCH] Fix CBasicViewport using deprecated Qt API --- src/Editor/CBasicViewport.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Editor/CBasicViewport.cpp b/src/Editor/CBasicViewport.cpp index d6d833e7..39169d44 100644 --- a/src/Editor/CBasicViewport.cpp +++ b/src/Editor/CBasicViewport.cpp @@ -71,7 +71,7 @@ void CBasicViewport::mousePressEvent(QMouseEvent *pEvent) { setFocus(); - if (pEvent->button() == Qt::MidButton) mButtonsPressed |= EMouseInput::MiddleButton; + if (pEvent->button() == Qt::MiddleButton) mButtonsPressed |= EMouseInput::MiddleButton; if (pEvent->button() == Qt::RightButton) mButtonsPressed |= EMouseInput::RightButton; if (IsMouseInputActive()) @@ -102,9 +102,9 @@ void CBasicViewport::mousePressEvent(QMouseEvent *pEvent) void CBasicViewport::mouseReleaseEvent(QMouseEvent *pEvent) { bool fromMouseInput = IsMouseInputActive(); - if (pEvent->button() == Qt::LeftButton) mButtonsPressed &= ~EMouseInput::LeftButton; - if (pEvent->button() == Qt::MidButton) mButtonsPressed &= ~EMouseInput::MiddleButton; - if (pEvent->button() == Qt::RightButton) mButtonsPressed &= ~EMouseInput::RightButton; + if (pEvent->button() == Qt::LeftButton) mButtonsPressed &= ~EMouseInput::LeftButton; + if (pEvent->button() == Qt::MiddleButton) mButtonsPressed &= ~EMouseInput::MiddleButton; + if (pEvent->button() == Qt::RightButton) mButtonsPressed &= ~EMouseInput::RightButton; // Make cursor visible if needed if (!IsMouseInputActive())