mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
a921acb3ce
commit
f818ac3352
2 changed files with 11 additions and 24 deletions
|
|
@ -38,8 +38,7 @@ public:
|
|||
QString pluginObject();
|
||||
|
||||
private:
|
||||
void enterEditMode();
|
||||
void exitEditMode();
|
||||
void updateEditMode();
|
||||
QObject *m_map;
|
||||
MapLocationModel *m_mapLocationModel;
|
||||
qreal m_smallCircleRadius;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue