summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/diveeventitem.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-02-15 21:05:47 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-15 17:15:14 -0800
commit87d528992052ccc6204a25642b503a15ab45f9f9 (patch)
treee36f45855771a7df85eaa33719ba1289cbae5365 /qt-ui/profile/diveeventitem.h
parent6c67f90858aaccddc848e94ea161e284456e94d3 (diff)
downloadsubsurface-87d528992052ccc6204a25642b503a15ab45f9f9.tar.gz
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 <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/diveeventitem.h')
-rw-r--r--qt-ui/profile/diveeventitem.h3
1 files changed, 2 insertions, 1 deletions
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;