mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
078332bae1
commit
f0f8b91c00
2 changed files with 7 additions and 0 deletions
|
@ -252,6 +252,12 @@ void DiveCartesianAxis::updateTicks(color_indice_t color)
|
||||||
changed = false;
|
changed = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DiveCartesianAxis::setLine(const QLineF &line)
|
||||||
|
{
|
||||||
|
QGraphicsLineItem::setLine(line);
|
||||||
|
changed = true;
|
||||||
|
}
|
||||||
|
|
||||||
void DiveCartesianAxis::animateChangeLine(const QLineF &newLine)
|
void DiveCartesianAxis::animateChangeLine(const QLineF &newLine)
|
||||||
{
|
{
|
||||||
setLine(newLine);
|
setLine(newLine);
|
||||||
|
|
|
@ -45,6 +45,7 @@ public:
|
||||||
void setTextVisible(bool arg1);
|
void setTextVisible(bool arg1);
|
||||||
void setLinesVisible(bool arg1);
|
void setLinesVisible(bool arg1);
|
||||||
void setLineSize(qreal lineSize);
|
void setLineSize(qreal lineSize);
|
||||||
|
void setLine(const QLineF& line);
|
||||||
int unitSystem;
|
int unitSystem;
|
||||||
public
|
public
|
||||||
slots:
|
slots:
|
||||||
|
|
Loading…
Add table
Reference in a new issue