mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Dive site: add proximity field to dive site list
Merging dive sites is currently only possible if dive sites are at the exact same position. Introduce a field where the user can enter a distance up to which all dive sites should be listed. These can then be merged. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
22fe0c14e8
commit
8287d86d2b
5 changed files with 63 additions and 5 deletions
|
|
@ -62,11 +62,13 @@ class GPSLocationInformationModel : public QSortFilterProxyModel {
|
|||
private:
|
||||
const struct dive_site *ignoreDs;
|
||||
location_t location;
|
||||
int64_t distance;
|
||||
bool filterAcceptsRow(int sourceRow, const QModelIndex &source_parent) const override;
|
||||
public:
|
||||
GPSLocationInformationModel(QObject *parent = nullptr);
|
||||
void set(const struct dive_site *ignoreDs, const location_t &);
|
||||
void setCoordinates(const location_t &);
|
||||
void setDistance(int64_t dist); // Distance from coordinates in mm
|
||||
};
|
||||
|
||||
class GeoReferencingOptionsModel : public QStringListModel {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue