From 9d33640bea9332ca5afb3df71f7a12da9c29e080 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 21 Jan 2014 14:05:29 -0200 Subject: Add the gas presssure profile texts. This just adds the texts for the gas profile. I've also added a method on the dataModel() to return the diveId of the last used dive in a way that the other methods can use it. This code is almost 1-to-1 with the old one, a bit of thinkering can be used to merge this loop with the upper one. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/profile/diveplotdatamodel.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-ui/profile/diveplotdatamodel.h') diff --git a/qt-ui/profile/diveplotdatamodel.h b/qt-ui/profile/diveplotdatamodel.h index 3d4d4958b..3afc580cf 100644 --- a/qt-ui/profile/diveplotdatamodel.h +++ b/qt-ui/profile/diveplotdatamodel.h @@ -19,9 +19,11 @@ public: void clear(); void setDive(struct dive *d, const plot_info& pInfo); plot_data* data(); + int id() const; private: int sampleCount; plot_data *plotData; + int diveId; }; #endif \ No newline at end of file -- cgit v1.2.3-70-g09d2