diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-11-19 04:12:31 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-11-19 04:12:31 -0800 |
commit | 788671944346c75dcf3562e4703928bca9b26600 (patch) | |
tree | 4a4a127454d15ffb7f2710d6dda97f2eec8cfb9f /qt-ui/maintab.h | |
parent | 0877d9345761d037df4e9e9e980da8d5288e57b6 (diff) | |
download | subsurface-788671944346c75dcf3562e4703928bca9b26600.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.h')
-rw-r--r-- | qt-ui/maintab.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/maintab.h b/qt-ui/maintab.h index d2c96a972..6aee9fbfe 100644 --- a/qt-ui/maintab.h +++ b/qt-ui/maintab.h @@ -59,6 +59,7 @@ public: void initialUiSetup(); void equipmentPlusUpdate(); bool isEditing(); + void updateCoordinatesText(qreal lat, qreal lon); public slots: void addCylinder_clicked(); void addWeight_clicked(); |