diff options
Diffstat (limited to 'desktop-widgets/maintab.cpp')
-rw-r--r-- | desktop-widgets/maintab.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/desktop-widgets/maintab.cpp b/desktop-widgets/maintab.cpp index d181131a8..b5a156d68 100644 --- a/desktop-widgets/maintab.cpp +++ b/desktop-widgets/maintab.cpp @@ -431,6 +431,16 @@ void MainTab::refreshDiveInfo() updateDiveInfo(); } +void MainTab::updateDepthDuration() +{ + ui.depth->setVisible(true); + ui.depthLabel->setVisible(true); + ui.duration->setVisible(true); + ui.durationLabel->setVisible(true); + ui.duration->setText(QDateTime::fromTime_t(displayed_dive.duration.seconds).toUTC().toString("h:mm")); + ui.depth->setText(get_depth_string(displayed_dive.maxdepth, true)); +} + void MainTab::updateDiveInfo(bool clear) { ui.location->refreshDiveSiteCache(); |