Fix CBasicViewport using deprecated Qt API
@@ -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())
@@ -103,7 +103,7 @@ 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::MiddleButton) mButtonsPressed &= ~EMouseInput::MiddleButton;
if (pEvent->button() == Qt::RightButton) mButtonsPressed &= ~EMouseInput::RightButton;
// Make cursor visible if needed
