From 87d528992052ccc6204a25642b503a15ab45f9f9 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Sat, 15 Feb 2014 21:05:47 -0200 Subject: Move the events when a partial pressure graph is enabled / disabled The events were static on the canvas even if the profile changed its size because of a toggle of the partial pressure gas. This patch makes events move on the canvas to their correct place. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/profile/diveeventitem.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'qt-ui/profile/diveeventitem.h') diff --git a/qt-ui/profile/diveeventitem.h b/qt-ui/profile/diveeventitem.h index cd55f5678..f43fee01f 100644 --- a/qt-ui/profile/diveeventitem.h +++ b/qt-ui/profile/diveeventitem.h @@ -16,9 +16,10 @@ public: void setVerticalAxis(DiveCartesianAxis *axis); void setHorizontalAxis(DiveCartesianAxis *axis); void setModel(DivePlotDataModel *model); +public slots: + void recalculatePos(bool instant = false); private: void setupToolTipString(); - void recalculatePos(); void setupPixmap(); DiveCartesianAxis *vAxis; DiveCartesianAxis *hAxis; -- cgit v1.2.3-70-g09d2