diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-05-09 21:33:01 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-05-11 12:06:19 -0700 |
commit | 44c65fec8855315d322b84b4c4207713b90328d3 (patch) | |
tree | 21ba6e6901fa5e46cebca4e7abadc33292e24d05 /desktop-widgets/mapwidget.h | |
parent | 30d96d37043684a4087f09b7171b1873ec140236 (diff) | |
download | subsurface-44c65fec8855315d322b84b4c4207713b90328d3.tar.gz |
Map: automatically update names on the map
Currently, dive site names are only updated on full reload.
Instead hook directly into the corresponding signal in the
MapLocationModel to set the name. Also to the coordinates
directly there instead of going via the MapWidgetHelper.
In the MapWidgetHelper, just center on the changed dive site.
Hook into the signal directly there and remove the slot
from the MapWidget. This makes the whole call-chain at least
one call shorter.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/mapwidget.h')
-rw-r--r-- | desktop-widgets/mapwidget.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/desktop-widgets/mapwidget.h b/desktop-widgets/mapwidget.h index 430dd1668..67801207a 100644 --- a/desktop-widgets/mapwidget.h +++ b/desktop-widgets/mapwidget.h @@ -31,7 +31,6 @@ public slots: void selectedDivesChanged(const QList<int> &); void coordinatesChanged(struct dive_site *ds, const location_t &); void doneLoading(QQuickWidget::Status status); - void diveSiteChanged(struct dive_site *ds, int field); void divesChanged(dive_trip *, const QVector<dive *> &, DiveField field); private: |