diff options
Diffstat (limited to 'profile-widget/diveprofileitem.h')
-rw-r--r-- | profile-widget/diveprofileitem.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/profile-widget/diveprofileitem.h b/profile-widget/diveprofileitem.h index 8f9a56f6e..ce60b41c3 100644 --- a/profile-widget/diveprofileitem.h +++ b/profile-widget/diveprofileitem.h @@ -49,6 +49,7 @@ slots: virtual void settingsChanged(); virtual void modelDataChanged(const QModelIndex &topLeft = QModelIndex(), const QModelIndex &bottomRight = QModelIndex()); virtual void modelDataRemoved(const QModelIndex &parent, int from, int to); + void setVisible(bool visible); protected: /* when the model emits a 'datachanged' signal, this method below should be used to check if the @@ -91,7 +92,6 @@ public: DiveMeanDepthItem(); virtual void modelDataChanged(const QModelIndex &topLeft = QModelIndex(), const QModelIndex &bottomRight = QModelIndex()); virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0); - virtual void settingsChanged(); private: void createTextItem(); @@ -116,7 +116,6 @@ public: DiveHeartrateItem(); virtual void modelDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight); virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget); - virtual void settingsChanged(); private: void createTextItem(int seconds, int hr); @@ -129,7 +128,6 @@ public: DivePercentageItem(int i); virtual void modelDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight); virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget); - virtual void settingsChanged(); private: QString visibilityKey; @@ -141,7 +139,6 @@ public: DiveAmbPressureItem(); virtual void modelDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight); virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget); - virtual void settingsChanged(); private: QString visibilityKey; @@ -153,7 +150,6 @@ public: DiveGFLineItem(); virtual void modelDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight); virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget); - virtual void settingsChanged(); private: QString visibilityKey; @@ -205,6 +201,7 @@ class DiveCalculatedTissue : public DiveCalculatedCeiling { Q_OBJECT public: DiveCalculatedTissue(ProfileWidget2 *profileWidget); + void setVisible(bool visible); virtual void settingsChanged(); }; |