aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/diveplanner.cpp')
-rw-r--r--qt-ui/diveplanner.cpp39
1 files changed, 39 insertions, 0 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp
index 9fead0191..eee6e8f13 100644
--- a/qt-ui/diveplanner.cpp
+++ b/qt-ui/diveplanner.cpp
@@ -189,3 +189,42 @@ void DivePlanner::mouseReleaseEvent(QMouseEvent* event)
DiveHandler::DiveHandler(): QGraphicsEllipseItem(), from(0), to(0)
{
}
+
+void Ruler::setMaximum(double maximum)
+{
+ qDeleteAll(ticks);
+ max = maximum;
+ updateTicks();
+}
+
+void Ruler::setMinimum(double minimum)
+{
+ qDeleteAll(ticks);
+ min = minimum;
+ updateTicks();
+}
+
+Ruler::Ruler() : orientation(Qt::Horizontal)
+{
+}
+
+void Ruler::setOrientation(Qt::Orientation o)
+{
+ orientation = o;
+ updateTicks();
+}
+
+void Ruler::updateTicks()
+{
+
+}
+
+void Ruler::setLine(qreal x1, qreal y1, qreal x2, qreal y2)
+{
+
+}
+
+void Ruler::setTickInterval(double interval)
+{
+
+}