Fix a renamed Qt item
This commit is contained in:
parent
d867019dcb
commit
2c8ad5fa1d
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user