summaryrefslogtreecommitdiffstats
path: root/examples/widgets/itemviews/stardelegate/main.cpp
diff options
context:
space:
mode:
authorAlex Trotsenko <alex1973tr@gmail.com>2022-01-18 19:37:33 +0200
committerAlex Trotsenko <alex1973tr@gmail.com>2022-01-19 19:35:23 +0200
commit9f6f3da8eb5da4718f601cc768d5baba404ef1a6 (patch)
tree034cf21a5f25f5b2a54e5d08f832468336cce686 /examples/widgets/itemviews/stardelegate/main.cpp
parent552d1c91669ac22006a9ccc3146efb4c4f2c49d6 (diff)
tst_qeventdispatcher: avoid influence between test functionsHEADdev
When some test function fails (even as expected), it can leave the event dispatcher in an inconsistent state where the posted events queue might not be empty. As a result, this may break the internal logic of the next test function that is run. So, calling eventDispatcher->processEvents() after each completed function resets the event dispatcher to its initial state, which fixes the problem. Pick-to: 6.2 6.3 Change-Id: I5a54f892d09a6eca73c8fc82875ce3b9ce4a3242 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'examples/widgets/itemviews/stardelegate/main.cpp')
0 files changed, 0 insertions, 0 deletions