subsurface/desktop-widgets/tab-widgets
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
..
maintab.cpp Map: zoom on dive sites when flipping through dive site list 2018-10-08 13:29:51 -07:00
maintab.h Map: zoom on dive sites when flipping through dive site list 2018-10-08 13:29:51 -07:00
maintab.ui Use better aliases for icons. 2017-11-30 23:14:46 -08:00
TabBase.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
TabBase.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
TabDiveExtraInfo.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
TabDiveExtraInfo.h Cleanup: reinstate override modifiers 2018-09-29 15:23:25 -07:00
TabDiveExtraInfo.ui Break down MainTab into smaller classes 2017-04-06 18:23:25 -07:00
TabDiveInformation.cpp Dive information: fix surface interval calculation 2018-10-07 05:41:48 +03:00
TabDiveInformation.h Cleanup: reinstate override modifiers 2018-09-29 15:23:25 -07:00
TabDiveInformation.ui Choose water presets from a qcombobox in planner, custom value possible 2018-03-02 08:38:22 -08:00
TabDivePhotos.cpp Dive media: implement "Open folder of selected media files" 2018-07-20 08:29:27 +02:00
TabDivePhotos.h Cleanup: reinstate override modifiers 2018-09-29 15:23:25 -07:00
TabDivePhotos.ui Implement different zoom levels for dive photos tab 2017-12-18 12:07:10 -08:00
TabDiveStatistics.cpp Statistics: un-globalize stats_selection 2018-10-07 17:50:51 +03:00
TabDiveStatistics.h Cleanup: reinstate override modifiers 2018-09-29 15:23:25 -07:00
TabDiveStatistics.ui Change layout of information and statistics tab... 2017-05-01 21:24:02 -07:00