mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Dive site: remove edit mode from dive location widget
Since no dive site field editing enters edit mode anymore, the whole edit mode state and code can be removed from the widget. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
0b851d723e
commit
b5d4d88fe5
10 changed files with 30 additions and 113 deletions
|
@ -257,7 +257,7 @@ void MapWidgetHelper::updateCurrentDiveSiteCoordinatesFromMap(struct dive_site *
|
|||
if (loc)
|
||||
loc->setCoordinate(coord);
|
||||
location_t location = mk_location(coord);
|
||||
emit coordinatesChanged(location);
|
||||
emit coordinatesChanged(ds, location);
|
||||
}
|
||||
|
||||
void MapWidgetHelper::updateDiveSiteCoordinates(struct dive_site *ds, const location_t &location)
|
||||
|
@ -294,8 +294,6 @@ void MapWidgetHelper::enterEditMode(struct dive_site *ds)
|
|||
coord = exists->coordinate();
|
||||
}
|
||||
centerOnDiveSite(ds);
|
||||
location_t location = mk_location(coord);
|
||||
emit coordinatesChanged(location);
|
||||
emit editModeChanged();
|
||||
}
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ signals:
|
|||
void modelChanged();
|
||||
void editModeChanged();
|
||||
void selectedDivesChanged(QList<int> list);
|
||||
void coordinatesChanged(const location_t &);
|
||||
void coordinatesChanged(struct dive_site *ds, const location_t &);
|
||||
void pluginObjectChanged();
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue