locationinformation: don't update map location on typing

Currently when the user is typing new coordinates the
marker on the map changes location right away. Disable that and
add a 'flag' button that should be pressed instead. Also make the
coordinates update when pressing Enter or when the text
field loses focus.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
Lubomir I. Ivanov 2017-11-27 00:26:46 +02:00
parent fe69b304b2
commit a084ea5b26
3 changed files with 46 additions and 14 deletions

View file

@ -15,6 +15,7 @@ public:
protected:
void showEvent(QShowEvent *);
void enableLocationButtons(bool enable);
public slots:
void acceptChanges();
@ -33,6 +34,7 @@ public slots:
void mergeSelectedDiveSites();
private slots:
void updateLabels();
void updateLocationOnMap();
signals:
void startEditDiveSite(uint32_t uuid);
void endEditDiveSite();