diff options
author | Ariya Hidayat <ariya.hidayat@nokia.com> | 2009-08-19 12:54:25 (GMT) |
---|---|---|
committer | Ariya Hidayat <ariya.hidayat@nokia.com> | 2009-08-19 12:56:12 (GMT) |
commit | 0b658e2bc30e4dc0a8cc90f13b2e63a8175081b0 (patch) | |
tree | 341ac0da276ba5d62a96169c358b3f6d90d18a49 /demos | |
parent | 8b31f3a59f7a7153e6b5b3af0856f660a5d21034 (diff) | |
download | Qt-0b658e2bc30e4dc0a8cc90f13b2e63a8175081b0.zip Qt-0b658e2bc30e4dc0a8cc90f13b2e63a8175081b0.tar.gz Qt-0b658e2bc30e4dc0a8cc90f13b2e63a8175081b0.tar.bz2 |
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.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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) { |