summaryrefslogtreecommitdiffstats
path: root/profile-widget/tankitem.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-10-27 18:08:07 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-27 12:42:21 -0700
commita7067937b0ee805f20f62b138dae7b260d20c426 (patch)
treee913bebb9396a75f190ed8bd26708d63c9cd1e0c /profile-widget/tankitem.h
parentbc11097dedd456506013caba5e886a0df4c74ead (diff)
downloadsubsurface-a7067937b0ee805f20f62b138dae7b260d20c426.tar.gz
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>
Diffstat (limited to 'profile-widget/tankitem.h')
-rw-r--r--profile-widget/tankitem.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/profile-widget/tankitem.h b/profile-widget/tankitem.h
index 4eb5710d6..545f9ad9c 100644
--- a/profile-widget/tankitem.h
+++ b/profile-widget/tankitem.h
@@ -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;