summaryrefslogtreecommitdiffstats
path: root/src/gui/image
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2019-07-03 16:25:54 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2019-07-10 06:17:09 +0200
commitb426cff1e0363b350f98bc64691b9b279bc6c757 (patch)
tree4561264fc2b7f9c1e84ee1953f1abc0c0e3f02a1 /src/gui/image
parent59b29d03b2fff8a138382d45077c81fe0d4b8ea8 (diff)
Make tst_QGraphicsItem painting tests most robust
Counting absolute paint events is fragile, as there are no guarantees that a single call to QApp::processEvents only delivers a single paint event to a widget. As of QTBUG-76566, we see that the items occasionally receive three calls to paint, which can be simulated by activating other windows while the test is running and waiting for events to be processed. Instead, verify that we do receive any paint events as the first test, and then verify increments when we expect updates. This also reverts change 24b9424adcda1ab083fae4ae857007227ba5fee2. Change-Id: Ib51853e918f31acd3aea10d4109c95f34012a29f Fixes: QTBUG-76566 Reviewed-by: Dimitrios Apostolou <dimitrios.apostolou@qt.io> Reviewed-by: Andreas Aardal Hanssen <andreas@hanssen.name>
Diffstat (limited to 'src/gui/image')
0 files changed, 0 insertions, 0 deletions