diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-07-27 23:59:30 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-07-28 07:31:11 -0700 |
commit | 4a004f37eac32c2c84b5453d9d6b12a5bf06e8c2 (patch) | |
tree | 7c6b20f48aede94b11f0dddb1c063b10699c9f74 /desktop-widgets/mapwidget.h | |
parent | 4d698310ff830462b7d5fad7d449bedc45aa50cb (diff) | |
download | subsurface-4a004f37eac32c2c84b5453d9d6b12a5bf06e8c2.tar.gz |
mapwidget: add a method to set update editMode in MapWidgetHelper
The local slot coordinatesChangedLocal() tracks the MapWidgetHelper
coordinatesChanged() signal and emit a coordinatesChanged() signal
to any listeners (e.g. MainWindow).
Also add a small change in centerOnDiveSite(), to not be called if
we are skipping the reload (skipReload is updated by
selectedDivesChanged()).
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'desktop-widgets/mapwidget.h')
-rw-r--r-- | desktop-widgets/mapwidget.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop-widgets/mapwidget.h b/desktop-widgets/mapwidget.h index 5a79cd68d..49d94608a 100644 --- a/desktop-widgets/mapwidget.h +++ b/desktop-widgets/mapwidget.h @@ -33,8 +33,10 @@ public slots: void repopulateLabels();
void prepareForGetDiveCoordinates();
void selectedDivesChanged(QList<int>);
+ void coordinatesChangedLocal();
private:
+ void setEditMode(bool editMode);
static MapWidget *m_instance;
QQuickItem *m_rootItem;
MapWidgetHelper *m_mapHelper;
|