diff options
author | Tang HaiXiang <tanghaixiang@uniontech.com> | 2020-07-24 16:48:36 +0800 |
---|---|---|
committer | Tang HaiXiang <tanghaixiang@uniontech.com> | 2020-07-25 02:02:23 +0800 |
commit | b4aee30692c166025b4e2283c19dbc1247bcce54 (patch) | |
tree | d8c0e20bad9e97bf19c20c479828fcee9b04abf7 /tests/auto/gui/image/qimage | |
parent | fd0473f489a570eedbd61b69c2d201fe92f6c05e (diff) |
Fix under non-integer scaling incorrect update area
Given some decimal scaling, the clipping of the QRegion/QRect passed to the QRegion/QRect done inside paintEvent cannot handle the decimal scaling.
Solved by only converting QRect to a certain QRectF and calling QRectF overload instead of QRect.
Fixes: QTBUG-82601
Fixes: QTBUG-64854
Pick-to: 5.15
Change-Id: I0d8f4193aabfc0d917612db68d2a39ebb726fa2f
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'tests/auto/gui/image/qimage')
0 files changed, 0 insertions, 0 deletions