mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
b342730ec9
commit
d4b5854f82
5 changed files with 8 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue