diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-10-23 20:21:50 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-11-15 18:25:50 +0100 |
commit | 22634e00794e72d68e7578e1962f9f2023870749 (patch) | |
tree | f5af2820b6f2b29e5aba30e74ffaaa3e6b05268b /src/plugins/sqldrivers/psql/CMakeLists.txt | |
parent | 9879d41d05b681bc41bbc97a66b03a04363fd44c (diff) |
Make sure we paint overlapped children and siblings when moving far
In paintAndFlush, QWidgetRepaintManager subtracts opaque children if
the target isn't overlapped and isMoved is set to true. So in moveRect,
set isMoved to true after the blitting of movable areas, and reset it to
false if we have overlapped sibling or child regions. Otherwise, moving
so far that sourceRect is invalid (none of the original pixels are
visible after the move) we end up in a code path that sets isMoved to
true even with overlapping children or siblings, which then breaks
paintAndFlush's assumptions.
Reuse the test case written by Sergiy Korobov <tiamatenko@gmail.com> in
earlier attempts to fix this bug.
Fixes: QTBUG-26269
Pick-to: 6.2
Change-Id: If7443863f5eee79a80220cd587522122f42a21e4
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/plugins/sqldrivers/psql/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions