aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/util/qquickpixmapcache_p.h
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@nokia.com>2012-03-05 10:11:16 +0100
committerQt by Nokia <qt-info@nokia.com>2012-03-05 12:30:26 +0100
commit43ffdc3fc02eb058d7d458cb16a9c3cf07ea68eb (patch)
treeb802cdb7cda03c1cf2df9a6c1b98760457adff06 /src/quick/util/qquickpixmapcache_p.h
parent416786d0f7fee72e235814c98eb2d887b6098ae3 (diff)
Do not store an explicit QImage in the declarative pixmap cache.
This opens up for the scene graph adaptation only storing textures which effectively halves the memory usage for textures and images. Change-Id: I3452a15844ceeb4fc3a465865f99ee16e3e05607 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
Diffstat (limited to 'src/quick/util/qquickpixmapcache_p.h')
-rw-r--r--src/quick/util/qquickpixmapcache_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/util/qquickpixmapcache_p.h b/src/quick/util/qquickpixmapcache_p.h
index 0b4c2fb473..b339e6f1a0 100644
--- a/src/quick/util/qquickpixmapcache_p.h
+++ b/src/quick/util/qquickpixmapcache_p.h
@@ -104,7 +104,7 @@ public:
const QUrl &url() const;
const QSize &implicitSize() const;
const QSize &requestSize() const;
- const QImage &image() const;
+ QImage image() const;
void setImage(const QImage &);
QQuickTextureFactory *textureFactory() const;