Fix a renamed Qt item

This commit is contained in:
Lofty 2024-01-03 13:29:49 +00:00 committed by myrtle
parent d867019dcb
commit 2c8ad5fa1d

View File

@ -721,7 +721,7 @@ void FPGAViewWidget::mousePressEvent(QMouseEvent *event)
bool shift = QApplication::keyboardModifiers().testFlag(Qt::ShiftModifier);
bool ctrl = QApplication::keyboardModifiers().testFlag(Qt::ControlModifier);
bool btn_right = event->buttons() & Qt::RightButton;
bool btn_mid = event->buttons() & Qt::MidButton;
bool btn_mid = event->buttons() & Qt::MiddleButton;
bool btn_left = event->buttons() & Qt::LeftButton;
if (btn_right || btn_mid || (btn_left && shift)) {
@ -761,7 +761,7 @@ void FPGAViewWidget::mouseMoveEvent(QMouseEvent *event)
bool shift = QApplication::keyboardModifiers().testFlag(Qt::ShiftModifier);
bool btn_right = event->buttons() & Qt::RightButton;
bool btn_mid = event->buttons() & Qt::MidButton;
bool btn_mid = event->buttons() & Qt::MiddleButton;
bool btn_left = event->buttons() & Qt::LeftButton;
if (btn_right || btn_mid || (btn_left && shift)) {