diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-09 00:24:03 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-09 00:24:03 -0300 |
commit | 9554cb57673f3dc4818b9578ea607526c813242e (patch) | |
tree | 0226acea1ad83f01eab763114b4a64d6d3441778 /qt-ui/profilegraphics.h | |
parent | d120fed21191f547db1b2bc3a04a9ce389faec0f (diff) | |
download | subsurface-9554cb57673f3dc4818b9578ea607526c813242e.tar.gz |
Plot of the Cylinder Pressure over time.
a few code was moved around, a macro that contained
the form of x ? : y; had to be rewritten to x ? x : y
since c++ doesn't allow ternarys without the middle operator.
The color-choosing for the Cylinder Pressure broke
on the Qt port - but it's a small issue.
I'm painting everyone as 'dark green' now, will
fix that later.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/profilegraphics.h')
-rw-r--r-- | qt-ui/profilegraphics.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/profilegraphics.h b/qt-ui/profilegraphics.h index e1cb417f9..7f166574d 100644 --- a/qt-ui/profilegraphics.h +++ b/qt-ui/profilegraphics.h @@ -96,6 +96,9 @@ private: void plot_events(struct divecomputer *dc); void plot_one_event(struct event *event); void plot_temperature_profile(); + void plot_cylinder_pressure(struct dive *dive, struct divecomputer *dc); + + QColor get_sac_color(int sac, int avg_sac); QPen defaultPen; QBrush defaultBrush; |