From 754160d625d374cc2b98df53511371b0ab286c7a Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Mon, 8 Oct 2018 13:51:57 +0200 Subject: 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 --- desktop-widgets/locationinformation.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'desktop-widgets/locationinformation.h') diff --git a/desktop-widgets/locationinformation.h b/desktop-widgets/locationinformation.h index 66d52a490..0e425e217 100644 --- a/desktop-widgets/locationinformation.h +++ b/desktop-widgets/locationinformation.h @@ -2,6 +2,7 @@ #ifndef LOCATIONINFORMATION_H #define LOCATIONINFORMATION_H +#include "core/units.h" #include "ui_locationInformation.h" #include #include @@ -20,7 +21,7 @@ protected: public slots: void acceptChanges(); void rejectChanges(); - void updateGpsCoordinates(); + void updateGpsCoordinates(degrees_t latitude, degrees_t longitude); void markChangedWidget(QWidget *w); void enableEdition(); void resetState(); -- cgit v1.2.3-70-g09d2