summaryrefslogtreecommitdiff
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/CachingImage.qml16
1 files changed, 2 insertions, 14 deletions
diff --git a/widgets/CachingImage.qml b/widgets/CachingImage.qml
index 08be473..0622d69 100644
--- a/widgets/CachingImage.qml
+++ b/widgets/CachingImage.qml
@@ -6,22 +6,10 @@ Image {
id: root
property string path
- readonly property Thumbnailer.Thumbnail thumbnail: Thumbnailer.go(path, width, height)
+ property bool loadOriginal
+ readonly property Thumbnailer.Thumbnail thumbnail: Thumbnailer.go(this)
source: thumbnail.path ? `file://${thumbnail.path}` : ""
asynchronous: true
fillMode: Image.PreserveAspectCrop
-
- onPathChanged: {
- thumbnail.originalPath = path;
- thumbnail.reload();
- }
- onWidthChanged: {
- thumbnail.width = width;
- thumbnail.reload();
- }
- onHeightChanged: {
- thumbnail.height = height;
- thumbnail.reload();
- }
}