mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
d032373caf
commit
db97f33e13
2 changed files with 142 additions and 25 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue