summaryrefslogtreecommitdiffstats
path: root/map-widget/qmlmapwidgethelper.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-08-30 22:19:23 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-09-06 11:48:47 -0700
commitf818ac3352b5a66d6fcc452ddc5ebb84a18bb29a (patch)
tree4f2af3624ea3854e7f876e2bcb506943d0a19453 /map-widget/qmlmapwidgethelper.h
parenta921acb3ce30ef5cbc4ea8093fcc0bdae13fb109 (diff)
downloadsubsurface-f818ac3352b5a66d6fcc452ddc5ebb84a18bb29a.tar.gz
Map: replace enterEditMode()/exitEditMode() by updateEditMode()
There weree two functions in MapWidgetHelper: one to enter and one to exit edit mode. Both functions set the flag and emitted a signal if the flag had changed. Since the edit mode only depends on a flag of the filter this can be simplified to a simple function that updates the flag and raises the signal if the flag changed. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'map-widget/qmlmapwidgethelper.h')
-rw-r--r--map-widget/qmlmapwidgethelper.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/map-widget/qmlmapwidgethelper.h b/map-widget/qmlmapwidgethelper.h
index 86d9a8ff5..4079b6aa0 100644
--- a/map-widget/qmlmapwidgethelper.h
+++ b/map-widget/qmlmapwidgethelper.h
@@ -38,8 +38,7 @@ public:
QString pluginObject();
private:
- void enterEditMode();
- void exitEditMode();
+ void updateEditMode();
QObject *m_map;
MapLocationModel *m_mapLocationModel;
qreal m_smallCircleRadius;