diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-05-01 14:48:14 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-01 14:48:14 -0700 |
commit | 7f3b487c77c71cc7e3f62bfd2ebde4559a0a6e56 (patch) | |
tree | f1098bc640bfaff8fb6f466aa41447b0e37332a6 /qt-ui/tagwidget.h | |
parent | c71d258024afd03b96381e258802b474e2c8f708 (diff) | |
download | subsurface-7f3b487c77c71cc7e3f62bfd2ebde4559a0a6e56.tar.gz |
Restore the previous globe zoom level after showing dive without GPS
Thanks to commit 83c5ab58718e ("Zoom out when dive has no coords.") we
show more of the globe when displaying dives without GPS data - but that
caused us to forget the zoom level we used before and so the experience
when switching back to a dive with GPS data was disappointing.
This makes sure we track the last valid zoom level and restore it when
needed.
I also replaced the deprecated zoomView() calls with setZoom() calls.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/tagwidget.h')
0 files changed, 0 insertions, 0 deletions