diff options
Diffstat (limited to 'desktop-widgets/diveplanner.cpp')
-rw-r--r-- | desktop-widgets/diveplanner.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/desktop-widgets/diveplanner.cpp b/desktop-widgets/diveplanner.cpp index b12feab95..ee85d12bc 100644 --- a/desktop-widgets/diveplanner.cpp +++ b/desktop-widgets/diveplanner.cpp @@ -181,6 +181,16 @@ void DivePlannerWidget::setupStartTime(QDateTime startTime) ui.dateEdit->setDate(startTime.date()); } +void DivePlannerWidget::setSurfacePressure(int surface_pressure) +{ + ui.ATMPressure->setValue(surface_pressure); +} + +void DivePlannerWidget::setSalinity(int salinity) +{ + ui.salinity->setValue(salinity / 10000.0); +} + void DivePlannerWidget::settingsChanged() { // Adopt units |