mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
MOBILE: Display pO2 and Setpoint for CCR dives
For CCR dives we want to display the setpoint and pO2 information, due to the limited screensize we have to remove the temperature graph or the view will be to cluttered. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
This commit is contained in:
parent
ae7913599c
commit
bd0c99dfb7
3 changed files with 54 additions and 26 deletions
|
@ -159,6 +159,9 @@ void QMLManager::openLocalThenRemote(QString url)
|
|||
prefs.units = git_prefs.units;
|
||||
prefs.tankbar = git_prefs.tankbar;
|
||||
prefs.dcceiling = git_prefs.dcceiling;
|
||||
prefs.show_ccr_setpoint = git_prefs.show_ccr_setpoint;
|
||||
prefs.show_ccr_sensors = git_prefs.show_ccr_sensors;
|
||||
prefs.pp_graphs.po2 = git_prefs.pp_graphs.po2;
|
||||
process_dives(false, false);
|
||||
DiveListModel::instance()->clear();
|
||||
DiveListModel::instance()->addAllDives();
|
||||
|
@ -548,6 +551,9 @@ void QMLManager::consumeFinishedLoad(timestamp_t currentDiveTimestamp)
|
|||
prefs.units = git_prefs.units;
|
||||
prefs.tankbar = git_prefs.tankbar;
|
||||
prefs.dcceiling = git_prefs.dcceiling;
|
||||
prefs.show_ccr_setpoint = git_prefs.show_ccr_setpoint;
|
||||
prefs.show_ccr_sensors = git_prefs.show_ccr_sensors;
|
||||
prefs.pp_graphs.po2 = git_prefs.pp_graphs.po2;
|
||||
DiveListModel::instance()->clear();
|
||||
process_dives(false, false);
|
||||
DiveListModel::instance()->addAllDives();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue