qt5base-lts/tests/auto/gui
Mikolaj Boc 78acaf4fb6 Fix sending deferred delete events when posted before outermost loop
QDeferredDeleteEvent has the loopLevel field, which is a sum of
scope and loop levels found at posting. In sendPostedEvents however,
it is impossible to only use this information to find delete events
posted before the outermost loop (which should be handled by any loop)
based solely on this information, as the scope level essentialy removes
the information on loop level.

Break the loopLevel in two, storing both loop and scope levels in
QDeferredDeleteEvent, so that we can check whether an event was posted
before the outermost event loop (for which we need to compare only the
loop level).

QDeferredDeleteEvent was also made private as it should - it is an
implementation detail that wasn't hidden properly.

Change-Id: I0a607a0bd3a2deb5024acad67f740dbf4338574c
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Reviewed-by: Mikołaj Boc <Mikolaj.Boc@qt.io>
2023-06-09 16:31:35 +02:00
..
image tst_QPixmapCache: QVERIFY a failed replace() 2023-06-09 12:32:48 +00:00
itemmodels Fix setting combo data with QSortFilterProxyModel 2023-04-19 20:26:24 +02:00
kernel Fix sending deferred delete events when posted before outermost loop 2023-06-09 16:31:35 +02:00
math3d Verify fix for manual get<I> calls for QVector<N>D 2023-03-22 15:59:10 +00:00
painting Port QPathClipper test away from home-grown QCOMPARE 2023-03-05 06:00:18 +01:00
platform Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qopengl tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00
qopenglconfig tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00
qvulkan Android: SKIP cases failing on Android 12 CI with 16GB RAM 2023-02-20 20:10:48 +02:00
rhi rhi: vulkan: expose the instance in the nativeHandles query 2023-05-30 10:29:51 +02:00
text Implement color role AccentColor in QStyleSheetStyle and QCssParser 2023-05-22 14:45:26 +00:00
util Doc fix in QIntValidator::validate() and comment on a test 2023-03-03 23:19:23 +00:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00