qt5base-lts/tests/auto/widgets/kernel
Volker Hilsheimer 22634e0079 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>
2021-11-15 18:25:50 +01:00
..
qaction Don't fire shortcut if the action only lives in an unreachable submenu 2021-10-25 17:17:40 +00:00
qactiongroup Remove the qmake project files 2021-01-07 15:32:28 +01:00
qapplication Fix references to QGuiApplication::lastWindowClosed 2021-10-13 22:30:08 +02:00
qboxlayout Remove the qmake project files 2021-01-07 15:32:28 +01:00
qformlayout Remove the qmake project files 2021-01-07 15:32:28 +01:00
qgesturerecognizer Android: unblock passing tests 2021-04-27 21:12:50 +03:00
qgridlayout Fix invalid pointer return with QGridLayout::itemAt(-1) 2021-03-22 18:47:36 +08:00
qlayout Remove conditioning on Android embedded 2021-09-17 17:30:14 +02:00
qshortcut Fix tsts_QShortcut::keys on Wayland 2021-03-15 08:21:40 +01:00
qsizepolicy Remove the qmake project files 2021-01-07 15:32:28 +01:00
qstackedlayout Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtooltip Unskip QToolTip::keyEvent test on macOS 2021-09-09 19:22:55 +00:00
qwidget Calculate effect bounds when drawing widget graphics effect 2021-10-27 14:32:35 +03:00
qwidget_window Activate tst_QWidget_window::tst_showWithoutActivating on cocoa 2021-10-12 14:08:08 +02:00
qwidgetaction QWidgetAction: add test for defaultWidget() being deleted before action 2021-06-22 11:38:32 +02:00
qwidgetmetatype Remove the qmake project files 2021-01-07 15:32:28 +01:00
qwidgetrepaintmanager Make sure we paint overlapped children and siblings when moving far 2021-11-15 18:25:50 +01:00
qwidgetsvariant Remove the qmake project files 2021-01-07 15:32:28 +01:00
qwindowcontainer Remove the qmake project files 2021-01-07 15:32:28 +01:00
CMakeLists.txt Add testcase for QWidgetRepaintManager 2021-09-30 21:10:48 +02:00