mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
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
1 changed files with 6 additions and 0 deletions
|
@ -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…
Reference in a new issue