qml: fix todo in ScaledImage

This commit is contained in:
Fatih Uzunoglu 2024-04-05 15:42:24 +03:00 committed by Steve Lhomme
parent 300b3b9c84
commit 9dc558a2f3
1 changed files with 0 additions and 5 deletions

View File

@ -29,11 +29,6 @@ Image {
property bool disableSmoothWhenIntegerUpscaling: false
// TODO: Remove this Qt >= 5.14 (Binding.restoreMode == Binding.RestoreBindingOrValue)
// Only required for the Binding to restore the value back
readonly property bool _smooth: true
smooth: _smooth
Binding on smooth {
when: root.disableSmoothWhenIntegerUpscaling &&
!((root.paintedWidth % root.implicitWidth) || (root.paintedHeight % root.implicitHeight))