mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-03 03:36:10 +00:00
Fix CBasicViewport using deprecated Qt API
This commit is contained in:
parent
f20d1c17f6
commit
d80abeb302
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user