From ac9d761742d4d84d3e30f692c45c4d1e1aef6507 Mon Sep 17 00:00:00 2001 From: John Gibbon Date: Sun, 8 Nov 2020 20:37:52 +0100 Subject: [PATCH] add sourceSize to ProfileThumbnail --- qml/components/ProfileThumbnail.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qml/components/ProfileThumbnail.qml b/qml/components/ProfileThumbnail.qml index 38e6ba1..d1ae116 100644 --- a/qml/components/ProfileThumbnail.qml +++ b/qml/components/ProfileThumbnail.qml @@ -64,9 +64,11 @@ Item { Image { id: singleImage width: parent.width - Theme.paddingSmall - height: parent.height - Theme.paddingSmall + height: width anchors.centerIn: parent source: file.path + sourceSize.width: width + sourceSize.height: height fillMode: Image.PreserveAspectCrop autoTransform: true asynchronous: true