Profile: don't copy plot data for tank-bar

The whole plot info data was copied only so that the time of the
last item could be determined later. Instead, simply store the
timestamp.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-10-27 18:08:07 +01:00 committed by Dirk Hohndel
parent bc11097ded
commit a7067937b0
2 changed files with 17 additions and 18 deletions

View file

@ -26,8 +26,7 @@ public slots:
private:
void createBar(int startTime, int stopTime, struct gasmix gas);
DiveCartesianAxis *hAxis;
struct plot_data *pInfoEntry;
int pInfoNr;
int plotEndTime;
qreal height;
QBrush air, nitrox, oxygen, trimix;
QList<QGraphicsRectItem *> rects;