diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2010-11-12 03:02:58 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2010-11-12 03:02:58 (GMT) |
commit | af60542fc4214cc716ffb1bdc46e2e7f6b5a6b8a (patch) | |
tree | 72780b739b307fb0dfc08b76c713af4039298406 /demos | |
parent | 6e49bbc11a0cbe2f596f26066256154b0a5b23be (diff) | |
download | Qt-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.qml | 4 |
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 { |