mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-20 14:55:27 +00:00
Merge branch '129_moveOverlay' of https://github.com/tcanabrava/subsurface
This commit is contained in:
commit
3cca9eaf94
1 changed files with 2 additions and 2 deletions
|
@ -149,7 +149,7 @@ void ProfileGraphicsView::wheelEvent(QWheelEvent* event)
|
|||
if (event->delta() > 0 && zoomLevel <= 10) {
|
||||
scale(scaleFactor, scaleFactor);
|
||||
zoomLevel++;
|
||||
} else if (zoomLevel >= 0) {
|
||||
} else if (zoomLevel > 0) {
|
||||
// Zooming out
|
||||
scale(1.0 / scaleFactor, 1.0 / scaleFactor);
|
||||
zoomLevel--;
|
||||
|
@ -173,7 +173,7 @@ void ProfileGraphicsView::mouseMoveEvent(QMouseEvent* event)
|
|||
|
||||
toolTip->setPos(mapToScene(toolTipPos).x(), mapToScene(toolTipPos).y());
|
||||
|
||||
if (zoomLevel < 0)
|
||||
if (zoomLevel == 0)
|
||||
QGraphicsView::mouseMoveEvent(event);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue