summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/diveprofileitem.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-10-20 17:36:24 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-10-20 17:40:11 -0700
commit71d21c375c404cd675e408689c79e9d58d315ccc (patch)
treeac4a160bc1f4861daf9bb66acf5e19b718dfd717 /qt-ui/profile/diveprofileitem.h
parente1db94ea0c049184d06393e59843812c684f57cd (diff)
downloadsubsurface-71d21c375c404cd675e408689c79e9d58d315ccc.tar.gz
Recalculate the decompression if the date / time of a dive changes
The pre-existing tissue load going into a dive can change if the start time of a dive changes. Therefore we need to recalculate the ceiling when editing start time (or date) of a dive. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/diveprofileitem.h')
-rw-r--r--qt-ui/profile/diveprofileitem.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-ui/profile/diveprofileitem.h b/qt-ui/profile/diveprofileitem.h
index 300e4b265..86e90224a 100644
--- a/qt-ui/profile/diveprofileitem.h
+++ b/qt-ui/profile/diveprofileitem.h
@@ -162,6 +162,10 @@ public:
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
virtual void settingsChanged();
+public
+slots:
+ void recalc();
+
private:
bool is3mIncrement;
DiveTextItem *gradientFactor;