diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-05-26 19:29:25 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-26 15:42:43 -0700 |
commit | 4e3793c05310009878a407d107b4ef330710c5f3 (patch) | |
tree | b7a66a6aff48507b4a4571ce0c3e2e948d1011ba /qt-ui/profile/diveprofileitem.h | |
parent | d9abf885c2ef7861ca85a52eec3c01e0c04861d5 (diff) | |
download | subsurface-4e3793c05310009878a407d107b4ef330710c5f3.tar.gz |
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 <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/diveprofileitem.h')
-rw-r--r-- | qt-ui/profile/diveprofileitem.h | 3 |
1 files changed, 2 insertions, 1 deletions
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<Qt::AlignmentFlag> 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 { |