crop avatar thumbnails to fit aspect ratio

This commit is contained in:
Alexander Ivash 2018-05-22 03:18:08 +03:00
parent 9a4ea07614
commit 6ff2ea96f4
3 changed files with 3 additions and 0 deletions

View file

@ -308,6 +308,7 @@ Rectangle {
anchors.topMargin: 31
source: avatarUrl
visible: avatarImage.status !== Image.Loading
fillMode: Image.PreserveAspectCrop
}
ShadowRectangle {

View file

@ -23,6 +23,7 @@ Item {
anchors.fill: parent
visible: status !== Image.Loading
radius: 5
fillMode: Image.PreserveAspectCrop
}
ShadowRectangle {

View file

@ -11,6 +11,7 @@ Item {
property alias border: image.border
property alias status: image.status
property alias progress: image.progress
property alias fillMode: image.fillMode
RoundImage {
id: image