use StyledImage in more places

This commit is contained in:
end-4
2025-09-28 11:52:35 +02:00
parent e97f819a5c
commit 05dc53b396
5 changed files with 5 additions and 19 deletions
@@ -125,13 +125,12 @@ Rectangle {
sourceComponent: Item {
implicitHeight: root.imageHeight * root.scale
implicitWidth: imagePreview.implicitWidth
Image {
StyledImage {
id: imagePreview
anchors.fill: parent
source: Qt.resolvedUrl(root.filePath)
fillMode: Image.PreserveAspectFit
antialiasing: true
asynchronous: true
width: root.imageWidth * root.scale
height: root.imageHeight * root.scale
sourceSize.width: root.imageWidth * root.scale