diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-01-03 21:57:59 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-01-10 15:57:39 -0800 |
commit | 0146a0c8925e243d808a4e5488d068d6f8f065b6 (patch) | |
tree | 605decab19e72bb0cb21069c4a0e6002918d5e0e /profile-widget/tankitem.h | |
parent | 9560dbf8db668da7abf0490cd42ef416dfe65072 (diff) | |
download | subsurface-0146a0c8925e243d808a4e5488d068d6f8f065b6.tar.gz |
profile: remove displayed_dive from TankItem
The only time the TankItem is replot is when new data is set.
Therefore, replot() can be folded into setData().
The good thing is that setData() is passed the dive to be
plot. So the data can be extracted from there instead of
the global displayed_dive variable.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget/tankitem.h')
-rw-r--r-- | profile-widget/tankitem.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/profile-widget/tankitem.h b/profile-widget/tankitem.h index 265407cde..9890eb93d 100644 --- a/profile-widget/tankitem.h +++ b/profile-widget/tankitem.h @@ -18,7 +18,6 @@ public: private: void createBar(int startTime, int stopTime, struct gasmix gas); - void replot(); const DiveCartesianAxis &hAxis; int plotEndTime; QBrush air, nitrox, oxygen, trimix; |