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

Lubomir I. Ivanov neolit123 at gmail.com
Thu Jul 4 13:59:07 PDT 2013


On 4 July 2013 23:55, Lubomir I. Ivanov <neolit123 at gmail.com> wrote:
> 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
>

patch title somehow broke...should have been "Profile: use more levels of zoom"
the GTK version has more zoom than 10, but not sure if 20 is a good level.

lubomir
--


More information about the subsurface mailing list