mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
profile: rectify animSpeed data flow
The cartesian axes use animSpeed to animate changes. Instead of passing down the value to the respective functions, the speed was stored in the ProfileScene and the axes would access it there. Very messy. Let's just pass down the speed. There still are back-references from the axes to the scene, notably to place labels "outside" of the scene. Let's try to remove them later. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
d19b095db1
commit
1327043d6e
5 changed files with 52 additions and 52 deletions
|
|
@ -38,12 +38,11 @@ public:
|
|||
ProfileScene(double fontPrintScale);
|
||||
~ProfileScene();
|
||||
|
||||
void updateAxes(); // Update axes according to preferences
|
||||
void updateAxes(bool instant); // Update axes according to preferences
|
||||
void clear();
|
||||
bool isPointOutOfBoundaries(const QPointF &point) const;
|
||||
|
||||
// If a plannerModel is passed, the deco-information is taken from there.
|
||||
int animSpeed;
|
||||
void plotDive(const struct dive *d, int dc, DivePlannerPointsModel *plannerModel = nullptr, bool inPlanner = false,
|
||||
bool instant = false, bool calcMax = true);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue