summaryrefslogtreecommitdiff
path: root/demos/declarative
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2010-11-12 13:02:58 +1000
committerYann Bodson <yann.bodson@nokia.com>2010-11-12 13:02:58 +1000
commitaf60542fc4214cc716ffb1bdc46e2e7f6b5a6b8a (patch)
tree72780b739b307fb0dfc08b76c713af4039298406 /demos/declarative
parent6e49bbc11a0cbe2f596f26066256154b0a5b23be (diff)
downloadqt4-tools-af60542fc4214cc716ffb1bdc46e2e7f6b5a6b8a.tar.gz
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/declarative')
-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 5948b5da81..856a2c7d4e 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 {