diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-10-08 13:51:57 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-11 16:25:32 -0700 |
commit | 754160d625d374cc2b98df53511371b0ab286c7a (patch) | |
tree | 1e9cc3363f9b7ec2598e714b34ad6f3cb3c364a0 /desktop-widgets/mapwidget.h | |
parent | 66c5c5f72b82bd07c6222dbf624d6389237a590b (diff) | |
download | subsurface-754160d625d374cc2b98df53511371b0ab286c7a.tar.gz |
Map: pass changed coordinates via signal
The coordinates of a "dragged flag" were passed out-of-bound via
the global "displayed_dive_site" object and then a signal was sent
to notify of the changed coordinates.
Instead, pass the coordinates directly via the signal. This makes
the data- and control-flow more clear.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/mapwidget.h')
-rw-r--r-- | desktop-widgets/mapwidget.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop-widgets/mapwidget.h b/desktop-widgets/mapwidget.h index aa528c980..e85dd885b 100644 --- a/desktop-widgets/mapwidget.h +++ b/desktop-widgets/mapwidget.h @@ -25,7 +25,7 @@ public: void reload(); signals: - void coordinatesChanged(); + void coordinatesChanged(degrees_t latitude, degrees_t longitude); public slots: void centerOnSelectedDiveSite(); @@ -35,7 +35,7 @@ public slots: void repopulateLabels(); void prepareForGetDiveCoordinates(); void selectedDivesChanged(QList<int>); - void coordinatesChangedLocal(); + void coordinatesChangedLocal(degrees_t latitude, degrees_t longitude); void doneLoading(QQuickWidget::Status status); void updateDiveSiteCoordinates(uint32_t uuid, degrees_t latitude, degrees_t longitude); |