profile: only plot visible range of tank info

This was a rather trivial change: simply pass in the first
and the last second to the plot function.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-10-08 21:28:32 +02:00 committed by Dirk Hohndel
parent d97cc8d4d5
commit 85d1e1d199
3 changed files with 19 additions and 20 deletions

View file

@ -14,7 +14,7 @@ class TankItem : public QGraphicsRectItem
{
public:
explicit TankItem(const DiveCartesianAxis &axis, double dpr);
void setData(const struct plot_info *plotInfo, const struct dive *d);
void setData(const struct dive *d, int plotStartTime, int plotEndTime);
double height() const;
private: