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 <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2014-07-29 18:48:17 -03:00 committed by Dirk Hohndel
parent 078332bae1
commit f0f8b91c00
2 changed files with 7 additions and 0 deletions

View file

@ -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);

View file

@ -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: