widget: new fillMode and smt

This commit is contained in:
loner
2025-11-18 04:28:50 +08:00
parent 79f79e0cff
commit 12766e411d
3 changed files with 16 additions and 19 deletions
+2 -1
View File
@@ -11,6 +11,7 @@ Rectangle {
property color borderColor: Color.transparent
property real borderWidth: 0
property real imageRadius: width * 0.5
property int imageFillMode: Image.PreserveAspectCrop
property string fallbackIcon: ""
property real fallbackIconSize: Style.fontSizeXXL
@@ -35,7 +36,7 @@ Rectangle {
smooth: true
asynchronous: true
antialiasing: true
fillMode: Image.PreserveAspectFit
fillMode: root.imageFillMode
horizontalAlignment: Image.AlignHCenter
verticalAlignment: Image.AlignVCenter