summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/locationinformation.h
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-11-27 00:26:46 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-11-27 22:59:22 +0100
commita084ea5b261b10d336f7a474a5b57705550d8825 (patch)
treec27cc5ca6905f340a2eddd268e62d903e4fa2b78 /desktop-widgets/locationinformation.h
parentfe69b304b2496233142d9018ab5c6a7675ea089c (diff)
downloadsubsurface-a084ea5b261b10d336f7a474a5b57705550d8825.tar.gz
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>
Diffstat (limited to 'desktop-widgets/locationinformation.h')
-rw-r--r--desktop-widgets/locationinformation.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop-widgets/locationinformation.h b/desktop-widgets/locationinformation.h
index 3a2696a54..114626454 100644
--- a/desktop-widgets/locationinformation.h
+++ b/desktop-widgets/locationinformation.h
@@ -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();