summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/diveprofileitem.h
diff options
context:
space:
mode:
authorGravatar Lakshman <acrlakshman@gmail.com>2014-04-08 00:00:50 -0400
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-04-10 09:21:43 -0700
commit6a8d929876f5a8d0279d2a83248a5d7b59e0ae39 (patch)
tree97ce70f6851a4e2d756a946607298f6325edf9d3 /qt-ui/profile/diveprofileitem.h
parent20bde81023938a64fd417e75af3b85f19789f9ac (diff)
downloadsubsurface-6a8d929876f5a8d0279d2a83248a5d7b59e0ae39.tar.gz
Feature to show or hide heart rate graph
Adds new push button "HR" to the button bar on the dive profile to toggle display of heart rate. TODO: New icon for the heart rate button is needed. Fixes #485 Signed-off-by: Lakshman Anumolu <acrlakshman@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/diveprofileitem.h')
-rw-r--r--qt-ui/profile/diveprofileitem.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/qt-ui/profile/diveprofileitem.h b/qt-ui/profile/diveprofileitem.h
index 480776546..c7fa59841 100644
--- a/qt-ui/profile/diveprofileitem.h
+++ b/qt-ui/profile/diveprofileitem.h
@@ -100,9 +100,14 @@ public:
DiveHeartrateItem();
virtual void modelDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight);
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
+ virtual void preferencesChanged();
+ void setVisibilitySettingsKey(const QString &setVisibilitySettingsKey);
+ bool isVisible();
private:
void createTextItem(int seconds, int hr);
+ QString visibilityKey;
+ bool visible;
};
class DiveGasPressureItem : public AbstractProfilePolygonItem {