mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
profile: don't recalculate plot-info when zooming / scrolling
This is a potentially expensive operation (e.g. interpolation of pressure values), so don't recalculate the plot data for every redraw. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
6dfc2da8d0
commit
71629521b7
3 changed files with 10 additions and 7 deletions
|
@ -42,7 +42,7 @@ public:
|
|||
|
||||
// If a plannerModel is passed, the deco-information is taken from there.
|
||||
void plotDive(const struct dive *d, int dc, DivePlannerPointsModel *plannerModel = nullptr, bool inPlanner = false,
|
||||
bool instant = false, bool calcMax = true, double zoom = 1.0, double zoomedPosition = 0.0);
|
||||
bool instant = false, bool keepPlotInfo = false, bool calcMax = true, double zoom = 1.0, double zoomedPosition = 0.0);
|
||||
|
||||
void draw(QPainter *painter, const QRect &pos,
|
||||
const struct dive *d, int dc,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue