aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquicklistview.cpp
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2022-11-02 09:32:43 +0800
committerMitch Curtis <mitch.curtis@qt.io>2022-11-08 14:05:15 +0800
commit649151bdcc4c2e747224d4405d3b6bb13525161d (patch)
tree0cae3e78ab0d6d7a558ad58bcb449e4d964417bd /src/quick/items/qquicklistview.cpp
parente3d601b6ba76aba0bdc55cae773c2eb435c46bf7 (diff)
QQuickNinePatchImage: fix aliasing by respecting the smooth property
When scaling with fractional values, aliasing can occur. Use the same approach as BorderImage and respect the smooth property of NinePatchImage. This property comes from QQuickImageBase, which sets it to true by default. We change QQuickNinePatchImage's default value for it to false, but this can be overridden by setting QT_QUICK_CONTROLS_IMAGINE_SMOOTH to 1. As NinePatchImage is not public API, and users would have to set the smooth property on every image (where some items contain multiple NinePatchImages), it's better to have one place to set this for all controls. [ChangeLog][Controls] The Imagine style now supports smooth scaling for 9-patch images when the QT_QUICK_CONTROLS_IMAGINE_SMOOTH environment variable is set to 1. Fixes: QTBUG-107989 Pick-to: 6.2 6.4 Change-Id: I250a041f87c0270d67af191168f7bcfbf6237925 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/quick/items/qquicklistview.cpp')
0 files changed, 0 insertions, 0 deletions