summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2016-01-17 12:53:51 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-02-26 09:16:24 +0100
commitb73f56bc43dac5d43d3d8fe16c9d40ed5987ab1d (patch)
tree171db29747f97a5c9d2299eade25dd050be19945 /qt-ui
parent09cec219f79f67eab4a0524b6116ea2920bb00cb (diff)
downloadsubsurface-b73f56bc43dac5d43d3d8fe16c9d40ed5987ab1d.tar.gz
Hide the time from trip tab
This hides the start time when viewing trip details. See #964 Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/maintab.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index ede3cb5ef..50f7ba58c 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -524,6 +524,8 @@ void MainTab::updateDiveInfo(bool clear)
ui.waterTempLabel->setVisible(false);
ui.watertemp->setVisible(false);
ui.dateEdit->setReadOnly(true);
+ ui.label->setVisible(false);
+ ui.timeEdit->setVisible(false);
ui.diveTripLocation->show();
ui.location->hide();
ui.editDiveSiteButton->hide();
@@ -563,6 +565,8 @@ void MainTab::updateDiveInfo(bool clear)
ui.waterTempLabel->setVisible(true);
ui.watertemp->setVisible(true);
ui.dateEdit->setReadOnly(false);
+ ui.label->setVisible(true);
+ ui.timeEdit->setVisible(true);
/* and fill them from the dive */
ui.rating->setCurrentStars(displayed_dive.rating);
ui.visibility->setCurrentStars(displayed_dive.visibility);