From 0b658e2bc30e4dc0a8cc90f13b2e63a8175081b0 Mon Sep 17 00:00:00 2001 From: Ariya Hidayat Date: Wed, 19 Aug 2009 14:54:25 +0200 Subject: Preload the tiles for the zoomed out version of the map. This eats more network, but helps to avoid the impression that the magnifying glass does not work. (This is cherry-picked from Graphics Dojo fix). Reviewed-by: TrustMe --- demos/embedded/lightmaps/lightmaps.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/demos/embedded/lightmaps/lightmaps.cpp b/demos/embedded/lightmaps/lightmaps.cpp index fdb86fd..6ad2020 100644 --- a/demos/embedded/lightmaps/lightmaps.cpp +++ b/demos/embedded/lightmaps/lightmaps.cpp @@ -269,6 +269,7 @@ public: m_normalMap->latitude = lat; m_normalMap->longitude = lng; m_normalMap->invalidate(); + m_largeMap->invalidate(); } public slots: @@ -300,6 +301,9 @@ protected: m_normalMap->width = width(); m_normalMap->height = height(); m_normalMap->invalidate(); + m_largeMap->width = m_normalMap->width * 2; + m_largeMap->height = m_normalMap->height * 2; + m_largeMap->invalidate(); } void paintEvent(QPaintEvent *event) { -- cgit v0.12