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>
This commit is contained in:
Dirk Hohndel 2015-05-22 12:15:53 -07:00
parent b342730ec9
commit d4b5854f82
5 changed files with 8 additions and 1 deletions

View file

@ -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();
}
}
}