From 4e3793c05310009878a407d107b4ef330710c5f3 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Mon, 26 May 2014 19:29:25 -0300 Subject: Paint the dive red if the user is breaking ceiling on the planner. This patch paints the dive red if the user is breaking ceiling on the planner - it's quite fast, it analizes the depth over the max(tissue_1 .. tissue_16) and changes the color of the profile. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/profile/diveprofileitem.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'qt-ui/profile/diveprofileitem.h') diff --git a/qt-ui/profile/diveprofileitem.h b/qt-ui/profile/diveprofileitem.h index de0c6f0c9..916404c2e 100644 --- a/qt-ui/profile/diveprofileitem.h +++ b/qt-ui/profile/diveprofileitem.h @@ -77,10 +77,11 @@ public: virtual void modelDataChanged(const QModelIndex &topLeft = QModelIndex(), const QModelIndex &bottomRight = QModelIndex()); virtual void settingsChanged(); void plot_depth_sample(struct plot_data *entry, QFlags flags, const QColor &color); - + int maxCeiling(int row); private: unsigned int show_reported_ceiling; unsigned int reported_ceiling_in_red; + QColor profileColor; }; class DiveTemperatureItem : public AbstractProfilePolygonItem { -- cgit v1.2.3-70-g09d2