diff options
author | Jan Mulder <jlmulder@xs4all.nl> | 2018-10-08 10:53:05 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-08 17:50:29 +0300 |
commit | 197ba9b2a42aad0109f535021a6b491b4b9f0a27 (patch) | |
tree | 95c17a37ec807e76cbb19761946f326cccfd555f /profile-widget | |
parent | d2d9821170c4417398c89308724ac7522555cf25 (diff) | |
download | subsurface-197ba9b2a42aad0109f535021a6b491b4b9f0a27.tar.gz |
Mobile: show temperature graph when no gas graph
In commit bd0c99dfb71 (display pO2 and Setpoint for CCR dives)
the choice was made: when CCR than never a temperature graph.
While this seems reasonable, there is small group of mCCR
divers that do not log their po2 digitally, so the only po2
they can display is the setpoint that is reported by the used
DC. As this is a bit of a dull flat line, most of these
divers do not display this. And this leaves room on the
small mobile display for the temperature data.
So effectively: show temperature or po2 graphs.
Suggested-by: Peter Zaal <pzaal@xs4all.nl>
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'profile-widget')
-rw-r--r-- | profile-widget/profilewidget2.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index d109ec5c0..793c6d950 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -734,7 +734,16 @@ void ProfileWidget2::plotDive(struct dive *d, bool force, bool doClearPictures) ccrsensor2GasItem->setVisible(prefs.show_ccr_sensors && (currentdc->no_o2sensors > 1)); ccrsensor3GasItem->setVisible(prefs.show_ccr_sensors && (currentdc->no_o2sensors > 1)); ocpo2GasItem->setVisible((currentdc->divemode == PSCR) && prefs.show_scr_ocpo2); - temperatureItem->setVisible(false); + //when no gas graph, we can show temperature + if (!po2GasItem->isVisible() && + !o2SetpointGasItem->isVisible() && + !ccrsensor1GasItem->isVisible() && + !ccrsensor2GasItem->isVisible() && + !ccrsensor3GasItem->isVisible() && + !ocpo2GasItem->isVisible()) + temperatureItem->setVisible(true); + else + temperatureItem->setVisible(false); } else { tankItem->setVisible(prefs.tankbar); gasYAxis->setPos(itemPos.partialPressure.pos.off); |