misc: don't call parent method since we don't need

This commit is contained in:
Gary Wang 2021-04-04 11:17:44 +08:00
parent 622938ac23
commit 114e7359cd

View File

@ -44,7 +44,7 @@ void NavigatorView::mousePressEvent(QMouseEvent *event)
update();
}
return QGraphicsView::mousePressEvent(event);
event->accept();
}
void NavigatorView::mouseMoveEvent(QMouseEvent *event)
@ -52,16 +52,17 @@ void NavigatorView::mouseMoveEvent(QMouseEvent *event)
if (m_mouseDown && m_mainView) {
m_mainView->centerOn(mapToScene(event->pos()));
update();
event->accept();
} else {
event->ignore();
}
return QGraphicsView::mouseMoveEvent(event);
}
void NavigatorView::mouseReleaseEvent(QMouseEvent *event)
{
m_mouseDown = false;
return QGraphicsView::mouseReleaseEvent(event);
event->accept();
}
void NavigatorView::wheelEvent(QWheelEvent *event)