Cache images in cards.
commit8d2514dd86630b6ee5169b77ab006063ac483647
authorMichał Sawicz <michal.sawicz@canonical.com>
dateThu 20 Feb 2014, 11:14 (13 years ago)
parent73c8be5
qml/Dash/Card.qml+1
@@ -87,6 +87,7 @@ AbstractButton {
8787 height: template && template["card-layout"] === "horizontal" ? header.height : width / artShape.aspect
8888 objectName: "artImage"
8989 source: cardData && cardData["art"] || ""
90+ cache: true
9091 // FIXME uncomment when having investigated / fixed the crash
9192 //sourceSize.width: width > height ? width : 0
9293 //sourceSize.height: height > width ? height : 0
qml/Dash/CardHeader.qml+1
@@ -63,6 +63,7 @@ Item {
6363
6464 image: Image {
6565 id: mascotImage
66+ cache: true
6667
6768 sourceSize { width: mascotShape.maxSize; height: mascotShape.maxSize }
6869 fillMode: Image.PreserveAspectCrop