diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2018-05-28 14:48:11 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2018-05-29 12:39:10 +0000 |
commit | 6f02d6fc56551cac309235ba920e062c0a465e1a (patch) | |
tree | 51893bc120bfc0cc53f68d243102304f6a08ce1b /src/effects/LevelAdjust.qml | |
parent | 209156fcb4cd53ddb4e54c33abec7cf4e01fb6ca (diff) |
Make relevant effects respect layer.smooth
Currently, source items that set smooth to false will have blurry
effects when using layer.effect. Fix that by setting the interpolation
property of each effect's SourceProxy.
Standalone effects seem to work fine already.
The patch adds a manual testcase: "smooth". This can be used to verify
that the functionality works in the future, as adding an auto test
is not really possible.
This isn't done for all effects, as it doesn't make sense for all of
them (blurs, for example).
Task-number: QTBUG-67382
Change-Id: Ic6f030090cd0579dd4259ebafc9c99a8b9940494
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/effects/LevelAdjust.qml')
-rw-r--r-- | src/effects/LevelAdjust.qml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/effects/LevelAdjust.qml b/src/effects/LevelAdjust.qml index a13354d..89aa3d7 100644 --- a/src/effects/LevelAdjust.qml +++ b/src/effects/LevelAdjust.qml @@ -406,6 +406,8 @@ Item { SourceProxy { id: sourceProxy input: rootItem.source + interpolation: rootItem.smooth || (rootItem.layer.enabled && rootItem.layer.smooth) + ? SourceProxy.NearestInterpolation : SourceProxy.LinearInterpolation } ShaderEffectSource { |