summaryrefslogtreecommitdiffstats
path: root/snap
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-01-04 00:00:38 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-10 15:57:39 -0800
commit0392994df0c9cd99df946633d6e318bd0548a3b9 (patch)
treea907006308ea681cb6a92bcd952a874a900be2f5 /snap
parentacee77e516bc77cd49a57b5aac620833ea655eb6 (diff)
downloadsubsurface-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 'snap')
0 files changed, 0 insertions, 0 deletions