summaryrefslogtreecommitdiffstats
path: root/map-widget/qmlmapwidgethelper.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-10-08 13:51:57 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-11 16:25:32 -0700
commit754160d625d374cc2b98df53511371b0ab286c7a (patch)
tree1e9cc3363f9b7ec2598e714b34ad6f3cb3c364a0 /map-widget/qmlmapwidgethelper.h
parent66c5c5f72b82bd07c6222dbf624d6389237a590b (diff)
downloadsubsurface-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 'map-widget/qmlmapwidgethelper.h')
-rw-r--r--map-widget/qmlmapwidgethelper.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/map-widget/qmlmapwidgethelper.h b/map-widget/qmlmapwidgethelper.h
index 77f352965..466e8944d 100644
--- a/map-widget/qmlmapwidgethelper.h
+++ b/map-widget/qmlmapwidgethelper.h
@@ -55,7 +55,7 @@ signals:
void modelChanged();
void editModeChanged();
void selectedDivesChanged(QList<int> list);
- void coordinatesChanged();
+ void coordinatesChanged(degrees_t latitude, degrees_t longitude);
void pluginObjectChanged();
};