summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index 7c94ab4c8..a1acfb52d 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -123,6 +123,7 @@ void MainTab::enableEdition(EditMode newEditMode)
return;
mainWindow()->dive_list()->setEnabled(false);
+ mainWindow()->globe()->diveEditMode();
// We may be editing one or more dives here. backup everything.
notesBackup.clear();
ui.notesButtonBox->show();
@@ -835,6 +836,13 @@ QString MainTab::printGPSCoords(int lat, int lon)
return result;
}
+void MainTab::updateCoordinatesText(qreal lat, qreal lon)
+{
+ int ulat = rint(lat * 1000000);
+ int ulon = rint(lon * 1000000);
+ ui.coordinates->setText(printGPSCoords(ulat, ulon));
+}
+
void MainTab::updateGpsCoordinates(const struct dive *dive)
{
if (dive) {