diff options
Diffstat (limited to 'qt-ui/profile/profilewidget2.h')
-rw-r--r-- | qt-ui/profile/profilewidget2.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qt-ui/profile/profilewidget2.h b/qt-ui/profile/profilewidget2.h index df4a844bd..a89cef786 100644 --- a/qt-ui/profile/profilewidget2.h +++ b/qt-ui/profile/profilewidget2.h @@ -43,6 +43,7 @@ struct PartialGasPressureAxis; class ProfileWidget2 : public QGraphicsView { Q_OBJECT void fixBackgroundPos(); + void scrollViewTo(const QPoint& pos); public: enum State{ EMPTY, PROFILE, EDIT, ADD, PLAN, INVALID }; enum Items{BACKGROUND, PROFILE_Y_AXIS, GAS_Y_AXIS, TIME_AXIS, DEPTH_CONTROLLER, TIME_CONTROLLER, COLUMNS}; @@ -55,6 +56,8 @@ public slots: // Necessary to call from QAction's signals. protected: virtual void contextMenuEvent(QContextMenuEvent* event); virtual void resizeEvent(QResizeEvent* event); + virtual void wheelEvent(QWheelEvent* event); + virtual void mouseMoveEvent(QMouseEvent* event); signals: void startProfileState(); @@ -70,7 +73,7 @@ private: DivePlotDataModel *dataModel; State currentState; QStateMachine *stateMachine; - + int zoomLevel; DivePixmapItem *background ; // All those here should probably be merged into one structure, // So it's esyer to replicate for more dives later. |