diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-10-01 17:41:38 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-10-01 17:59:44 -0400 |
commit | db97f33e13a039c32c888567b90633f9c5dc54fb (patch) | |
tree | 86357d982321a8f2195684729ea26e2ec9456af4 /qt-ui/maintab.cpp | |
parent | d032373cafb75f853362ed6efde740f094b449f4 (diff) | |
download | subsurface-db97f33e13a039c32c888567b90633f9c5dc54fb.tar.gz |
Add a new QLineEdit to set the dive trip location
This is different from a dive site, as it's not a dive site. It's just a
normal string, while a dive site has gps coordinates.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.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 a1923850f..df813bc5f 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -541,6 +541,9 @@ void MainTab::updateDiveInfo(bool clear) ui.TypeLabel->setVisible(false); ui.waterTempLabel->setVisible(false); ui.watertemp->setVisible(false); + ui.diveTripLocation->show(); + ui.location->hide(); + ui.editDiveSiteButton->hide(); // rename the remaining fields and fill data from selected trip ui.LocationLabel->setText(tr("Trip location")); ui.locationTags->clear(); @@ -554,6 +557,9 @@ void MainTab::updateDiveInfo(bool clear) setTabText(0, tr("Notes")); currentTrip = NULL; // make all the fields visible writeable + ui.diveTripLocation->hide(); + ui.location->show(); + ui.editDiveSiteButton->show(); ui.divemaster->setVisible(true); ui.buddy->setVisible(true); ui.suit->setVisible(true); |