diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-06-06 13:00:18 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-06-06 13:00:18 -0300 |
commit | 840f943acdd7e4b287f3ab74f2d2b0197910575a (patch) | |
tree | 3b40fd3338b41a454db501fe050ee071441d6dff | |
parent | 74d23ed83b0fe4a2270adc41b5a9bd20b7ca5d29 (diff) | |
download | subsurface-840f943acdd7e4b287f3ab74f2d2b0197910575a.tar.gz |
Fix movement of the tooltip overlay
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
-rw-r--r-- | qt-ui/profilegraphics.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp index 375d8b6d3..cfd155132 100644 --- a/qt-ui/profilegraphics.cpp +++ b/qt-ui/profilegraphics.cpp @@ -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); } |