diff options
author | Maximilian Güntner <maximilian.guentner@gmail.com> | 2013-11-04 20:28:03 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-11-05 17:05:29 +0900 |
commit | 6ee2d88896c8f2a3b607628f2eef225f2e3ef6eb (patch) | |
tree | bd1739631ec8bbb73975aa8b4ee1c9429aec4235 /qt-ui/maintab.cpp | |
parent | 0f66e7a0253c8377a17e866f059b43d492329865 (diff) | |
download | subsurface-6ee2d88896c8f2a3b607628f2eef225f2e3ef6eb.tar.gz |
Hide TadWidget and Label when editing a trip
Also hide ui.CoordinatedLabel when editing a trip,
since ui.coordinates is hidden.
Signed-off-by: Maximilian Güntner <maximilian.guentner@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 54bf35a73..104ed132f 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -286,6 +286,7 @@ void MainTab::updateDiveInfo(int dive) if (mainWindow() && mainWindow()->dive_list()->selectedTrips.count() == 1) { // only use trip relevant fields ui.coordinates->setVisible(false); + ui.CoordinatedLabel->setVisible(false); ui.divemaster->setVisible(false); ui.DivemasterLabel->setVisible(false); ui.buddy->setVisible(false); @@ -296,6 +297,8 @@ void MainTab::updateDiveInfo(int dive) ui.RatingLabel->setVisible(false); ui.visibility->setVisible(false); ui.visibilityLabel->setVisible(false); + ui.tagWidget->setVisible(false); + ui.TagLabel->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")); @@ -305,6 +308,7 @@ void MainTab::updateDiveInfo(int dive) } else { // make all the fields visible writeable ui.coordinates->setVisible(true); + ui.CoordinatedLabel->setVisible(true); ui.divemaster->setVisible(true); ui.buddy->setVisible(true); ui.suit->setVisible(true); @@ -315,6 +319,8 @@ void MainTab::updateDiveInfo(int dive) ui.visibilityLabel->setVisible(true); ui.BuddyLabel->setVisible(true); ui.DivemasterLabel->setVisible(true); + ui.TagLabel->setVisible(true); + ui.tagWidget->setVisible(true); /* and fill them from the dive */ ui.rating->setCurrentStars(d->rating); ui.visibility->setCurrentStars(d->visibility); |