fix(StatusRoundedImage): ensure images are scaled and positioned properly

Closes #172
This commit is contained in:
Pascal Precht 2021-06-23 12:19:08 +02:00 committed by Michał Cieślak
parent 1a14f9ebe2
commit 5e127c7194
1 changed files with 5 additions and 2 deletions

View File

@ -26,9 +26,12 @@ Rectangle {
Image {
id: image
sourceSize.width: parent.implicitWidth
sourceSize.height: parent.implicitHeight
width: statusRoundImage.width
height: statusRoundImage.height
sourceSize.width: parent.width * 2
sourceSize.height: parent.height * 2
fillMode: Image.PreserveAspectFit
anchors.centerIn: parent
cache: true
}