The Zoom is working just like the GTK Version.

This code enables Zoom in / Out with the Wheel,
and it also enables panning by moving the mouse around.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
Tomaz Canabrava 2013-05-09 19:59:55 -03:00 committed by Dirk Hohndel
parent 9cc089f9f6
commit acdb5d97eb
2 changed files with 33 additions and 7 deletions

View file

@ -67,6 +67,7 @@ public:
protected:
void resizeEvent(QResizeEvent *event);
void mouseMoveEvent(QMouseEvent* event);
void wheelEvent(QWheelEvent* event);
private:
void plot_depth_profile();
@ -93,6 +94,7 @@ private:
QBrush defaultBrush;
ToolTipItem *toolTip;
graphics_context gc;
struct dive *dive;
};
#endif