Hide temperature fields when displaying / editing trip data
And show them again when displaying a dive. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
6ee2d88896
commit
1c3a1a9592
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user