[PATCH 2/3] Profile: use ,pre levels of zoom

Lubomir I. Ivanov neolit123 at gmail.com
Thu Jul 4 13:55:26 PDT 2013


From: "Lubomir I. Ivanov" <neolit123 at gmail.com>

Makes it easier to see colored lines - e.g. velocity
with 20 levels of zoom.

Signed-off-by: Lubomir I. Ivanov <neolit123 at gmail.com>
---
 qt-ui/profilegraphics.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp
index 0fcac8a..cfc1cf6 100644
--- a/qt-ui/profilegraphics.cpp
+++ b/qt-ui/profilegraphics.cpp
@@ -78,7 +78,7 @@ void ProfileGraphicsView::wheelEvent(QWheelEvent* event)
 	QPoint toolTipPos = mapFromScene(toolTip->pos());
 
 	double scaleFactor = 1.15;
-	if (event->delta() > 0 && zoomLevel < 10) {
+	if (event->delta() > 0 && zoomLevel < 20) {
 		scale(scaleFactor, scaleFactor);
 		zoomLevel++;
 	} else if (event->delta() < 0 && zoomLevel > 0) {
-- 
1.7.11.msysgit.0



More information about the subsurface mailing list