add sourceSize to ProfileThumbnail
This commit is contained in:
parent
68e2dab715
commit
ac9d761742
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue