summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/graphicsview
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2022-11-04 14:39:18 +0100
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2022-11-08 19:44:59 +0100
commitfe67c69643ff72be0a32ed8bbb4f8ca827ce53c7 (patch)
treee4bbd3bc889b8fe943187576a5ea41ff1f921d0a /tests/auto/widgets/graphicsview
parent3d03001d2d308e09d9dcb618db960ac69ec42e80 (diff)
tst_QGraphicsEffectSource: Reset effect repaint count after flushing events
Follow-up to 8222e06d12a4e2a84ce1161abd0ceb58622c740b, which only reset the item repaint count. Flushing the queued paint events will bump numRepaints, and the whole point of calling reset() is to prepare a consistent state before the next test, so we need to call it after flushing the events. Pick-to: 6.2 6.4 Change-Id: Id1fe840c14c0940d7020cf8f8cc6a3aeceaa5fb5 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/widgets/graphicsview')
-rw-r--r--tests/auto/widgets/graphicsview/qgraphicseffectsource/tst_qgraphicseffectsource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/widgets/graphicsview/qgraphicseffectsource/tst_qgraphicseffectsource.cpp b/tests/auto/widgets/graphicsview/qgraphicseffectsource/tst_qgraphicseffectsource.cpp
index 27ab4ce49e..43bc24e93d 100644
--- a/tests/auto/widgets/graphicsview/qgraphicseffectsource/tst_qgraphicseffectsource.cpp
+++ b/tests/auto/widgets/graphicsview/qgraphicseffectsource/tst_qgraphicseffectsource.cpp
@@ -154,10 +154,10 @@ void tst_QGraphicsEffectSource::init()
QVERIFY(effect);
QVERIFY(item);
QVERIFY(effect->source());
- effect->reset();
effect->storeDeviceDependentStuff = false;
effect->doNothingInDraw = false;
QCoreApplication::processEvents(); // Process all queued paint events
+ effect->reset();
item->reset();
}