From cc37d2e94ae34b8f260a1426e49c0ca082226502 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Wed, 12 Feb 2014 14:41:59 -0200 Subject: Make the mean depth line follow the size of the axis. When we move, shrink or expand the depth axis, the meandepth should also change it's position. this patch adds that. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/profile/diveprofileitem.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'qt-ui/profile/diveprofileitem.h') diff --git a/qt-ui/profile/diveprofileitem.h b/qt-ui/profile/diveprofileitem.h index 640b0d4a6..b51958104 100644 --- a/qt-ui/profile/diveprofileitem.h +++ b/qt-ui/profile/diveprofileitem.h @@ -135,10 +135,14 @@ public: MeanDepthLine(); void setMeanDepth(int value); void setLine(qreal x1, qreal y1, qreal x2, qreal y2); + void setAxis(DiveCartesianAxis *a); +public slots: + void axisLineChanged(); private: int meanDepth; DiveTextItem *leftText; DiveTextItem *rightText; + DiveCartesianAxis *axis; }; class PartialPressureGasItem : public AbstractProfilePolygonItem{ -- cgit v1.2.3-70-g09d2