fix: specify sourceSize as a single prop
So we don't get 2 updates when width/height change
This commit is contained in:
parent
4f1f609b55
commit
1f7aeec8c4
2 changed files with 2 additions and 5 deletions
|
|
@ -9,6 +9,5 @@ Image {
|
||||||
asynchronous: true
|
asynchronous: true
|
||||||
fillMode: Image.PreserveAspectCrop
|
fillMode: Image.PreserveAspectCrop
|
||||||
source: IUtils.urlForPath(path, fillMode)
|
source: IUtils.urlForPath(path, fillMode)
|
||||||
sourceSize.width: width
|
sourceSize: Qt.size(width, height)
|
||||||
sourceSize.height: height
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -63,11 +63,9 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
CachingImage {
|
CachingImage {
|
||||||
|
anchors.fill: parent
|
||||||
path: root.modelData.path
|
path: root.modelData.path
|
||||||
smooth: !root.PathView.view.moving
|
smooth: !root.PathView.view.moving
|
||||||
cache: true
|
|
||||||
|
|
||||||
anchors.fill: parent
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue