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>
This commit is contained in:
Tomaz Canabrava 2013-05-09 00:24:03 -03:00
parent d120fed211
commit 9554cb5767
4 changed files with 121 additions and 108 deletions

View file

@ -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;