summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2010-11-12 03:02:58 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2010-11-12 03:02:58 (GMT)
commitaf60542fc4214cc716ffb1bdc46e2e7f6b5a6b8a (patch)
tree72780b739b307fb0dfc08b76c713af4039298406 /demos
parent6e49bbc11a0cbe2f596f26066256154b0a5b23be (diff)
downloadQt-af60542fc4214cc716ffb1bdc46e2e7f6b5a6b8a.zip
Qt-af60542fc4214cc716ffb1bdc46e2e7f6b5a6b8a.tar.gz
Qt-af60542fc4214cc716ffb1bdc46e2e7f6b5a6b8a.tar.bz2
Add 'cached' property to Image element
Setting cached to false is useful when dealing with large images, to make sure that they aren't cached at the expense of small 'ui element' images. Task-number: QTBUG-7300 Reviewed-by: Aaron Kennedy
Diffstat (limited to 'demos')
-rw-r--r--demos/declarative/photoviewer/PhotoViewerCore/PhotoDelegate.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/declarative/photoviewer/PhotoViewerCore/PhotoDelegate.qml b/demos/declarative/photoviewer/PhotoViewerCore/PhotoDelegate.qml
index 5948b5d..856a2c7 100644
--- a/demos/declarative/photoviewer/PhotoViewerCore/PhotoDelegate.qml
+++ b/demos/declarative/photoviewer/PhotoViewerCore/PhotoDelegate.qml
@@ -88,11 +88,11 @@ Package {
}
BusyIndicator { anchors.centerIn: parent; on: originalImage.status != Image.Ready }
Image {
- id: originalImage; smooth: true; source: "http://" + Script.getImagePath(content)
+ id: originalImage; smooth: true; source: "http://" + Script.getImagePath(content); cached: false
fillMode: Image.PreserveAspectFit; width: photoWrapper.width; height: photoWrapper.height
}
Image {
- id: hqImage; smooth: true; source: ""; visible: false
+ id: hqImage; smooth: true; source: ""; visible: false; cached: false
fillMode: Image.PreserveAspectFit; width: photoWrapper.width; height: photoWrapper.height
}
Binding {