diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2014-01-21 14:05:29 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-01-21 09:39:42 -0800 |
commit | 9d33640bea9332ca5afb3df71f7a12da9c29e080 (patch) | |
tree | ca18df037282a8100deab83c7bb66d8420b70064 /qt-ui/profile/diveplotdatamodel.h | |
parent | 21d34db3a94e004affdaceb091382b251071d89d (diff) | |
download | subsurface-9d33640bea9332ca5afb3df71f7a12da9c29e080.tar.gz |
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 <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/diveplotdatamodel.h')
-rw-r--r-- | qt-ui/profile/diveplotdatamodel.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 |