From b9000208fe72832d85cbb0ffea34d13ef94034cd Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Sun, 17 Jan 2016 12:53:51 +0200 Subject: Hide the time from trip tab This hides the start time when viewing trip details. See #964 Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- desktop-widgets/maintab.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'desktop-widgets') diff --git a/desktop-widgets/maintab.cpp b/desktop-widgets/maintab.cpp index 197e5e7c4..3c9518247 100644 --- a/desktop-widgets/maintab.cpp +++ b/desktop-widgets/maintab.cpp @@ -520,6 +520,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(); @@ -559,6 +561,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); -- cgit v1.2.3-70-g09d2