summaryrefslogtreecommitdiffstats
path: root/profile-widget/diveprofileitem.h
diff options
context:
space:
mode:
Diffstat (limited to 'profile-widget/diveprofileitem.h')
-rw-r--r--profile-widget/diveprofileitem.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/profile-widget/diveprofileitem.h b/profile-widget/diveprofileitem.h
index 0bba7f7a3..8f9a56f6e 100644
--- a/profile-widget/diveprofileitem.h
+++ b/profile-widget/diveprofileitem.h
@@ -21,6 +21,7 @@
This is a generically item and should be used as a base for others, I think...
*/
+class ProfileWidget2;
class DivePlotDataModel;
class DiveTextItem;
class DiveCartesianAxis;
@@ -175,7 +176,7 @@ class DiveCalculatedCeiling : public AbstractProfilePolygonItem {
Q_OBJECT
public:
- DiveCalculatedCeiling();
+ DiveCalculatedCeiling(ProfileWidget2 *profileWidget);
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();
@@ -184,6 +185,9 @@ public
slots:
void recalc();
+protected:
+ ProfileWidget2 *profileWidget;
+
private:
bool is3mIncrement;
};
@@ -200,7 +204,7 @@ public:
class DiveCalculatedTissue : public DiveCalculatedCeiling {
Q_OBJECT
public:
- DiveCalculatedTissue();
+ DiveCalculatedTissue(ProfileWidget2 *profileWidget);
virtual void settingsChanged();
};