mapwidgethelper: obtain a list of nearby dives

Based on a current location (MapLocation), iterate the dive list
and add nearby dives (distance smaller than m_smallCircleRadius) to
a local QList property (m_selectedDiveIds).

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
Lubomir I. Ivanov 2017-07-24 21:15:23 +03:00 committed by Dirk Hohndel
parent 5ea702199b
commit 50f42cfdef
2 changed files with 17 additions and 1 deletions

View file

@ -27,6 +27,7 @@ private:
QObject *m_map;
MapLocationModel *m_mapLocationModel;
qreal m_smallCircleRadius;
QList<int> m_selectedDiveIds;
private slots:
void selectedLocationChanged(MapLocation *);