diff options
author | Chen Bin <chenbin@uniontech.com> | 2021-10-08 14:42:33 +0800 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-10-27 12:55:41 +0000 |
commit | 5e4adb9fdab99749e3e75d8dc706ba6a0366f18d (patch) | |
tree | 27793668db3727ea1142dfc1bd944305f2eedef7 /cmake | |
parent | 97cba363f99bec3174e305a714d4cdcabb147838 (diff) |
Update clipping area when antialiasing changes
Antialiasing is disabled when the painter's antialiasing attribute
is set behind the clipping function(example `setClipPath` or
`setClipRegion`). The cause of this problem is that the
antialiasing state of the clipping region is not updated after the
antialiasing attribute is set.
A variable is required to record the painter's transformation state
set before the clipping function, because the transformation will be
applied to the clipping region, resulting in the abnormal clipping
region. The value of `s->matrix` is not accurate for the clipping fun-
ction.
Fixes: QTBUG-97269
Change-Id: I409a9db32efc3b991ebb97ec9aed19bbddb273d8
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
(cherry picked from commit 6de36918c03e91933fbfb5bf7b53abbe03edf460)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'cmake')
0 files changed, 0 insertions, 0 deletions