diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-09 19:59:55 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-05-09 17:50:06 -0700 |
commit | acdb5d97ebe88a75933089a80b1ce844c4375851 (patch) | |
tree | 3f2e57f4ea7f2944357832e83d1e60dad7bf0855 /qt-ui/profilegraphics.h | |
parent | 9cc089f9f61a876057799e540c56178d4449fdce (diff) | |
download | subsurface-acdb5d97ebe88a75933089a80b1ce844c4375851.tar.gz |
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>
Diffstat (limited to 'qt-ui/profilegraphics.h')
-rw-r--r-- | qt-ui/profilegraphics.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/profilegraphics.h b/qt-ui/profilegraphics.h index 268226843..76179b956 100644 --- a/qt-ui/profilegraphics.h +++ b/qt-ui/profilegraphics.h @@ -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 |