mapwidgethelper: add the selectVisibleLocations() method

The new method selectVisibleLocations() contains a routine
to find all visible MapLocation objects in the Map viewport and
select the dives associated to said MapLocation objects.

This method is to be invoked from the QML context menu.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
Lubomir I. Ivanov 2017-08-07 02:58:19 +03:00 committed by Dirk Hohndel
parent 5db2460168
commit 93896e54db
2 changed files with 28 additions and 0 deletions

View file

@ -24,6 +24,7 @@ public:
Q_INVOKABLE void copyToClipboardCoordinates(QGeoCoordinate coord, bool formatTraditional);
Q_INVOKABLE void calculateSmallCircleRadius(QGeoCoordinate coord);
Q_INVOKABLE void updateCurrentDiveSiteCoordinates(quint32 uuid, QGeoCoordinate coord);
Q_INVOKABLE void selectVisibleLocations();
bool editMode();
void setEditMode(bool editMode);