From dff2bde9a3a5dba78deb799919224e8f33f11ce2 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Mon, 5 May 2025 22:15:31 +1000 Subject: thumbnailer: use single process + load original --- widgets/CachingImage.qml | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'widgets') 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(); - } } -- cgit v1.2.3-freya