From 1c3a1a95929335495795af6c8dfff2a2b368cca2 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 7 Nov 2013 12:38:35 +0900 Subject: Hide temperature fields when displaying / editing trip data And show them again when displaying a dive. Signed-off-by: Dirk Hohndel --- qt-ui/maintab.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 104ed132f..69d1b0b15 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -299,6 +299,9 @@ void MainTab::updateDiveInfo(int dive) ui.visibilityLabel->setVisible(false); ui.tagWidget->setVisible(false); ui.TagLabel->setVisible(false); + ui.TemperaturesLabel->setVisible(false); + ui.airtemp->setVisible(false); + ui.watertemp->setVisible(false); // rename the remaining fields and fill data from selected trip dive_trip_t *currentTrip = *mainWindow()->dive_list()->selectedTrips.begin(); ui.LocationLabel->setText(tr("Trip Location")); @@ -321,6 +324,9 @@ void MainTab::updateDiveInfo(int dive) ui.DivemasterLabel->setVisible(true); ui.TagLabel->setVisible(true); ui.tagWidget->setVisible(true); + ui.TemperaturesLabel->setVisible(true); + ui.airtemp->setVisible(true); + ui.watertemp->setVisible(true); /* and fill them from the dive */ ui.rating->setCurrentStars(d->rating); ui.visibility->setCurrentStars(d->visibility); -- cgit v1.2.3-70-g09d2