From 788671944346c75dcf3562e4703928bca9b26600 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 19 Nov 2013 04:12:31 -0800 Subject: Handle double clicks on globe during dive edit mode When we are editing or adding a dive, the globe widget needs to act differently. Instead of directly changing the lat/lon of selected dives, it needs populate the coordinate text field as if this information was entered by the user (effectively all it is is a way to more conveniently enter coordinates). As a side effect, this also allows us to change the location once it has been added (you just need to go into dive edit mode to do so). There is one weird issue that occasionally (and I can't quite reproduce this) I get lat/lon very close to 0/0 (as if the globe widget was centered on 0/0 and not on whatever it is actually showing). That still needs to be addressed. Fixes #239 Fixes #131 Signed-off-by: Dirk Hohndel --- qt-ui/globe.h | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-ui/globe.h') diff --git a/qt-ui/globe.h b/qt-ui/globe.h index cab42cefc..b04ff9266 100644 --- a/qt-ui/globe.h +++ b/qt-ui/globe.h @@ -18,6 +18,7 @@ public: GlobeGPS(QWidget *parent); void reload(); void centerOn(struct dive* dive); + void diveEditMode(); protected: /* reimp */ void resizeEvent(QResizeEvent *event); -- cgit v1.2.3-70-g09d2