add sourceSize to ProfileThumbnail

This commit is contained in:
John Gibbon 2020-11-08 20:37:52 +01:00
parent 68e2dab715
commit ac9d761742

View file

@ -64,9 +64,11 @@ Item {
Image { Image {
id: singleImage id: singleImage
width: parent.width - Theme.paddingSmall width: parent.width - Theme.paddingSmall
height: parent.height - Theme.paddingSmall height: width
anchors.centerIn: parent anchors.centerIn: parent
source: file.path source: file.path
sourceSize.width: width
sourceSize.height: height
fillMode: Image.PreserveAspectCrop fillMode: Image.PreserveAspectCrop
autoTransform: true autoTransform: true
asynchronous: true asynchronous: true