summaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.h
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/diveplanner.h')
-rw-r--r--qt-ui/diveplanner.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h
index 5557a7b56..f7af25113 100644
--- a/qt-ui/diveplanner.h
+++ b/qt-ui/diveplanner.h
@@ -7,9 +7,14 @@
class DiveHandler : public QGraphicsEllipseItem{
public:
DiveHandler();
+ void setTime(qreal t);
+ void setDepth(qreal d);
QGraphicsLineItem *from;
QGraphicsLineItem *to;
+private:
+ qreal time;
+ qreal depth;
};
class Ruler : public QGraphicsLineItem{
@@ -20,6 +25,7 @@ public:
void setTickInterval(double interval);
void setOrientation(Qt::Orientation orientation);
void updateTicks();
+ qreal valueAt(const QPointF& p);
private:
Qt::Orientation orientation;