subsurface/map-widget
Berthold Stoeger dd44dc4ab8 Map: pass down dive site in prepareForGetDiveCoordinates()
Instead of reading out the global object "displayed_dive_site",
pass the dive site to be edited in arguments to
prepareForGetDiveCoordinates() and enter edit mode.

Simplify the code in LocationInformationWidget by not using
signals to call the prepareForGetDiveCoordinates() function.
While doing this, collect common code in accept() and reject()
in the already existing resetState() function.

This is another entry in a series of commits that makes
data-flow more clear by removing access to the global
"displayed_dive_site" object.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2018-10-11 16:25:32 -07:00
..
qml map-widget: add qrc file for widget 2018-06-21 20:27:58 -07:00
qmlmapwidgethelper.cpp Map: pass down dive site in prepareForGetDiveCoordinates() 2018-10-11 16:25:32 -07:00
qmlmapwidgethelper.h Map: pass down dive site in prepareForGetDiveCoordinates() 2018-10-11 16:25:32 -07:00