tst_QGraphicsEffectSource: Reset repaint count after flushing events
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. Change-Id: Iaefc9854caafe82c65c9587e18fd081439e8dda6 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 8222e06d12a4e2a84ce1161abd0ceb58622c740b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
1b9efeddb5
commit
be36a0e284
@ -157,8 +157,8 @@ void tst_QGraphicsEffectSource::init()
|
||||
effect->reset();
|
||||
effect->storeDeviceDependentStuff = false;
|
||||
effect->doNothingInDraw = false;
|
||||
item->reset();
|
||||
QCoreApplication::processEvents(); // Process all queued paint events
|
||||
item->reset();
|
||||
}
|
||||
|
||||
void tst_QGraphicsEffectSource::graphicsItem()
|
||||
|
Loading…
x
Reference in New Issue
Block a user