summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-ui/profile/divecartesianaxis.cpp6
-rw-r--r--qt-ui/profile/divecartesianaxis.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/qt-ui/profile/divecartesianaxis.cpp b/qt-ui/profile/divecartesianaxis.cpp
index be3e313f0..e28d1c443 100644
--- a/qt-ui/profile/divecartesianaxis.cpp
+++ b/qt-ui/profile/divecartesianaxis.cpp
@@ -252,6 +252,12 @@ void DiveCartesianAxis::updateTicks(color_indice_t color)
changed = false;
}
+void DiveCartesianAxis::setLine(const QLineF &line)
+{
+ QGraphicsLineItem::setLine(line);
+ changed = true;
+}
+
void DiveCartesianAxis::animateChangeLine(const QLineF &newLine)
{
setLine(newLine);
diff --git a/qt-ui/profile/divecartesianaxis.h b/qt-ui/profile/divecartesianaxis.h
index 77e2697cc..15155692e 100644
--- a/qt-ui/profile/divecartesianaxis.h
+++ b/qt-ui/profile/divecartesianaxis.h
@@ -45,6 +45,7 @@ public:
void setTextVisible(bool arg1);
void setLinesVisible(bool arg1);
void setLineSize(qreal lineSize);
+ void setLine(const QLineF& line);
int unitSystem;
public
slots: