mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
map-widget: move the map with the edited dive site
Once the user starts editing the coordinates by hand (from the "Dive site management" UI) make sure to update the map to center on those user entered coordinates. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
parent
e18df84936
commit
d9cfcae88b
1 changed files with 1 additions and 0 deletions
|
@ -226,6 +226,7 @@ void MapWidgetHelper::updateCurrentDiveSiteCoordinatesToMap()
|
|||
const qreal longitude = displayed_dive_site.longitude.udeg * 0.000001;
|
||||
QGeoCoordinate coord(latitude, longitude);
|
||||
m_mapLocationModel->updateMapLocationCoordinates(displayed_dive_site.uuid, coord);
|
||||
QMetaObject::invokeMethod(m_map, "centerOnCoordinate", Q_ARG(QVariant, QVariant::fromValue(coord)));
|
||||
}
|
||||
|
||||
bool MapWidgetHelper::editMode()
|
||||
|
|
Loading…
Add table
Reference in a new issue