aboutsummaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2019-03-25 16:24:02 +0000
committerGitHub <noreply@github.com>2019-03-25 16:24:02 +0000
commitc67b8259bb8b31ba3f6aa30c431fef222e5f2f65 (patch)
tree6f427acacd9545150ad82465dda0e6c3d130c1e2 /gui
parent0d064c05f91b548638530e6e159ca9f8aa0fa352 (diff)
parent25e3350675c091c2fb54e51c9fcb7e79bbe6e279 (diff)
downloadnextpnr-c67b8259bb8b31ba3f6aa30c431fef222e5f2f65.tar.gz
nextpnr-c67b8259bb8b31ba3f6aa30c431fef222e5f2f65.tar.bz2
nextpnr-c67b8259bb8b31ba3f6aa30c431fef222e5f2f65.zip
Merge pull request #219 from daveshah1/placer_heap
HeAP-based analytical placer
Diffstat (limited to 'gui')
-rw-r--r--gui/fpgaviewwidget.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/gui/fpgaviewwidget.cc b/gui/fpgaviewwidget.cc
index c932c3e7..5eab20ed 100644
--- a/gui/fpgaviewwidget.cc
+++ b/gui/fpgaviewwidget.cc
@@ -645,10 +645,10 @@ void FPGAViewWidget::mousePressEvent(QMouseEvent *event)
return;
bool shift = QApplication::keyboardModifiers().testFlag(Qt::ShiftModifier);
- bool ctrl = QApplication::keyboardModifiers().testFlag(Qt::ControlModifier);
+ bool ctrl = QApplication::keyboardModifiers().testFlag(Qt::ControlModifier);
bool btn_right = event->buttons() & Qt::RightButton;
- bool btn_mid = event->buttons() & Qt::MidButton;
- bool btn_left = event->buttons() & Qt::LeftButton;
+ bool btn_mid = event->buttons() & Qt::MidButton;
+ bool btn_left = event->buttons() & Qt::LeftButton;
if (btn_right || btn_mid || (btn_left && shift)) {
lastDragPos_ = event->pos();
@@ -687,8 +687,8 @@ 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_left = event->buttons() & Qt::LeftButton;
+ bool btn_mid = event->buttons() & Qt::MidButton;
+ bool btn_left = event->buttons() & Qt::LeftButton;
if (btn_right || btn_mid || (btn_left && shift)) {
const int dx = event->x() - lastDragPos_.x();