From f0f8b91c0067e4b472e5f90b270621f4cef3b8ac Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 29 Jul 2014 18:48:17 -0300 Subject: Make the Axis set the changed flag when a new line is set This was preventing the recalculation of the ticks, making the line static when we enabled or disabled the PP graphs. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/profile/divecartesianaxis.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'qt-ui/profile/divecartesianaxis.cpp') 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); -- cgit v1.2.3-70-g09d2