summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-07 12:38:35 +0900
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-07 12:38:35 +0900
commit1c3a1a95929335495795af6c8dfff2a2b368cca2 (patch)
treeee872089b2ad81d107076f4c0bbfb7a97cc7f114 /qt-ui/maintab.cpp
parent6ee2d88896c8f2a3b607628f2eef225f2e3ef6eb (diff)
downloadsubsurface-1c3a1a95929335495795af6c8dfff2a2b368cca2.tar.gz
Hide temperature fields when displaying / editing trip data
And show them again when displaying a dive. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp6
1 files changed, 6 insertions, 0 deletions
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);