subsurface/qt-ui/profile
Lubomir I. Ivanov 4ccd6fb3b6 Fix the zoom-panning for the new profile
This works in a different way compared to the old widget.
To make it work we use vieport()'s height() and width()
and simplify the scroll position to:
scrollPosition = (mousePosition / totalLength) * scrollMaximum

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-02-05 09:27:39 -08:00
..
animationfunctions.cpp Add settings awareness for the PP graph 2014-01-27 09:15:28 -08:00
animationfunctions.h Add settings awareness for the PP graph 2014-01-27 09:15:28 -08:00
divecartesianaxis.cpp Optimizations and fixes on the new profile. 2014-02-05 06:30:33 -08:00
divecartesianaxis.h Optimizations and fixes on the new profile. 2014-02-05 06:30:33 -08:00
diveeventitem.cpp Fix compile time warnings 2014-01-17 06:39:24 +07:00
diveeventitem.h Transform the DiveProfileItem to an Abstract Generalization 2014-01-17 06:18:00 +07:00
divelineitem.cpp Added a new Namespace to deal with Animations and related functions. 2014-01-16 10:12:29 +07:00
divelineitem.h Added a class based on QGraphicsLineItem that can be animated. 2014-01-16 10:12:29 +07:00
divepixmapitem.cpp Whitespace and coding style updates 2014-01-16 11:50:56 +07:00
divepixmapitem.h Added a QGraphicsPixmapItem subclass that handles Animations. 2014-01-16 10:12:29 +07:00
diveplotdatamodel.cpp Created a method to check if calculations should take place. 2014-02-05 06:30:33 -08:00
diveplotdatamodel.h Created a method to check if calculations should take place. 2014-02-05 06:30:33 -08:00
diveprofileitem.cpp Fix hiding the tissues when user set 'show ceiling' to false. 2014-02-05 06:30:33 -08:00
diveprofileitem.h Optimizations and fixes on the new profile. 2014-02-05 06:30:33 -08:00
diverectitem.cpp Whitespace and coding style updates 2014-01-16 11:50:56 +07:00
diverectitem.h Added a new class based on QGraphicsRectItem that can be animated. 2014-01-16 10:12:20 +07:00
divetextitem.cpp Fix positioning of many text items. 2014-01-29 09:35:16 -08:00
divetextitem.h Add the dive computer text. 2014-01-21 09:38:46 -08:00
profilewidget2.cpp Fix the zoom-panning for the new profile 2014-02-05 09:27:39 -08:00
profilewidget2.h Added Mouse based Zoom / Movement. 2014-02-05 06:30:33 -08:00