2
0
mirror of synced 2025-02-18 09:36:24 +00:00

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 Pascal Precht
parent 70332a3f41
commit 3d0688b778

View File

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