added sourceSize property to qml's Image for better rendering

CURA-7162
This commit is contained in:
Dimitriovski 2020-02-27 11:19:44 +01:00
parent 3a0da99256
commit 1acfaf9705
No known key found for this signature in database
GPG key ID: 4E62757E2B0D304D
5 changed files with 14 additions and 0 deletions

View file

@ -71,6 +71,8 @@ UM.Dialog{
source: model.icon_url || "../../images/placeholder.svg"
height: lineHeight
width: height
sourceSize.height: height
sourceSize.width: width
mipmap: true
fillMode: Image.PreserveAspectFit
}
@ -114,6 +116,8 @@ UM.Dialog{
source: model.icon_url || "../../images/placeholder.svg"
height: lineHeight
width: height
sourceSize.height: height
sourceSize.width: width
mipmap: true
fillMode: Image.PreserveAspectFit
}