diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-05-22 12:15:53 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-05-22 12:29:39 -0700 |
commit | d4b5854f82522b1920bbfbe9e094bfa4f0bb516f (patch) | |
tree | 7735a4b9cf0821a33aad4d0c236e44b015a1e820 /qt-ui/locationinformation.cpp | |
parent | b342730ec958a6127cfef4e5459cfea96477ac42 (diff) | |
download | subsurface-d4b5854f82522b1920bbfbe9e094bfa4f0bb516f.tar.gz |
Location management: reflect changes to the coordinates on the map
This is a bit aggressive as it changes the globe with every single
character that's entered, but it's better than what we had before.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/locationinformation.cpp')
-rw-r--r-- | qt-ui/locationinformation.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-ui/locationinformation.cpp b/qt-ui/locationinformation.cpp index d20a6efc6..73c8767e8 100644 --- a/qt-ui/locationinformation.cpp +++ b/qt-ui/locationinformation.cpp @@ -3,6 +3,7 @@ #include "mainwindow.h" #include "divelistview.h" #include "qthelper.h" +#include "globe.h" #include <QDebug> #include <QShowEvent> @@ -146,6 +147,7 @@ void LocationInformationWidget::acceptChanges() mark_divelist_changed(true); resetState(); emit informationManagementEnded(); + emit coordinatesChanged(); } void LocationInformationWidget::rejectChanges() @@ -160,6 +162,7 @@ void LocationInformationWidget::rejectChanges() } resetState(); emit informationManagementEnded(); + emit coordinatesChanged(); } void LocationInformationWidget::showEvent(QShowEvent *ev) @@ -217,6 +220,7 @@ void LocationInformationWidget::on_diveSiteCoordinates_textChanged(const QString displayed_dive_site.latitude.udeg = latitude * 1000000; displayed_dive_site.longitude.udeg = longitude * 1000000; markChangedWidget(ui.diveSiteCoordinates); + emit coordinatesChanged(); } } } |