From 4409d61f7c4576497a60b7e50d0c81e2f20b826a Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 25 May 2013 11:13:15 -0700 Subject: Set a pleasant zoom level to start out with If the user very quickly switches between dives the zoom level sometimes gets reset to be much more "zoomed out" (basically if you change dives before Marble had time to zoom all the way in to the previous dive it will keep whatever was the last zoom level of the animation - I'd consider that a Marble bug). Signed-off-by: Dirk Hohndel --- qt-ui/globe.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp index 014a84a09..fea564644 100644 --- a/qt-ui/globe.cpp +++ b/qt-ui/globe.cpp @@ -39,6 +39,8 @@ GlobeGPS::GlobeGPS(QWidget* parent) : MarbleWidget(parent), loadedDives(0) setShowOverviewMap(false); setShowScaleBar(true); setShowCompass(false); + // set the zoom as seen from n kilometer above. 3km / 10,000ft seems pleasant + zoomView(zoomFromDistance(3)); } void GlobeGPS::reload() @@ -88,7 +90,6 @@ void GlobeGPS::centerOn(dive* dive) prepareForGetDiveCoordinates(dive); return; } - centerOn(longitude,latitude, true); } -- cgit v1.2.3-70-g09d2