summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorAriya Hidayat <ariya.hidayat@nokia.com>2009-08-19 14:54:25 +0200
committerAriya Hidayat <ariya.hidayat@nokia.com>2009-08-19 14:56:12 +0200
commit0b658e2bc30e4dc0a8cc90f13b2e63a8175081b0 (patch)
tree341ac0da276ba5d62a96169c358b3f6d90d18a49 /demos
parent8b31f3a59f7a7153e6b5b3af0856f660a5d21034 (diff)
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
Diffstat (limited to 'demos')
-rw-r--r--demos/embedded/lightmaps/lightmaps.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/demos/embedded/lightmaps/lightmaps.cpp b/demos/embedded/lightmaps/lightmaps.cpp
index fdb86fd4bc..6ad2020c1c 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) {