diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2014-01-16 18:39:13 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-01-17 06:18:25 +0700 |
commit | 58aeb6ce4014899e040a3ef8f4483f18fb44b432 (patch) | |
tree | 9e81e0fded3a1038ffa089e7b1bd49429d529df6 /qt-ui/profile/divecartesianaxis.h | |
parent | 254beef5d4c0ead123556ffbc5e37dd2cc81366e (diff) | |
download | subsurface-58aeb6ce4014899e040a3ef8f4483f18fb44b432.tar.gz |
Added the Temperature Graph.
Added the Temperature Graph with its related classes. A Temperature Axis
is also created so the item is plotted on the right place.
Currently the Temperature Axis is just like the depth axis - top is
zero, wich means that the graph is inverted.
Also, the Temperature axis is being displayed as this helps debugging.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/divecartesianaxis.h')
-rw-r--r-- | qt-ui/profile/divecartesianaxis.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/qt-ui/profile/divecartesianaxis.h b/qt-ui/profile/divecartesianaxis.h index eb50c1f92..6add27548 100644 --- a/qt-ui/profile/divecartesianaxis.h +++ b/qt-ui/profile/divecartesianaxis.h @@ -46,12 +46,18 @@ protected: class DepthAxis : public DiveCartesianAxis { protected: - QString textForValue(double value); + QString textForValue(double value); }; class TimeAxis : public DiveCartesianAxis { protected: - QString textForValue(double value); + QString textForValue(double value); +}; + +class TemperatureAxis : public DiveCartesianAxis{ + Q_OBJECT +protected: + QString textForValue(double value); }; // This is a try. Maybe the CartesianPlane should have the X and Y |