subsurface/map-widget
Berthold Stoeger 0aef04352a Map: zoom on dive sites when flipping through dive site list
The dive site list was connected to centerOnDiveSite(). Apparently,
the currently selected dive site should have been shown in the map.
Yet, this never worked, because the actual dive site of the selected
dive had precedence in centerOnDiveSite().

It seems that centerOnDiveSite() had actually to purposes:
1) center on the passed in dive site
2) center on the dive sites of the selected dives

Therefore, split this function in two separate functions for
each of these use-cases. This allows us to remove some pre-processor
magic (mobile vs. desktop) and to remove a parameter from the
MainTab::diveSiteChanged() signal.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2018-10-08 13:29:51 -07:00
..
qml map-widget: add qrc file for widget 2018-06-21 20:27:58 -07:00
qmlmapwidgethelper.cpp Map: zoom on dive sites when flipping through dive site list 2018-10-08 13:29:51 -07:00
qmlmapwidgethelper.h Map: zoom on dive sites when flipping through dive site list 2018-10-08 13:29:51 -07:00