diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-01-04 00:00:38 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-01-10 15:57:39 -0800 |
commit | 0392994df0c9cd99df946633d6e318bd0548a3b9 (patch) | |
tree | a907006308ea681cb6a92bcd952a874a900be2f5 /appdata | |
parent | acee77e516bc77cd49a57b5aac620833ea655eb6 (diff) | |
download | subsurface-0392994df0c9cd99df946633d6e318bd0548a3b9.tar.gz |
profile: move calculations out of DiveGasPressureItem::paint()
With the same argument as for DivePercentageItem, move access
to live data out of the paint() function. Instead, calculate
colors in replot(), where the other data are calculated.
This is slightly more complicated than in DivePercentageItem,
since there are multiple polygons. Therefore, replace QPolygonF
by a vector of structures contained the position and color
of the data point.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'appdata')
0 files changed, 0 insertions, 0 deletions