tst_QGraphicsView::viewportUpdateMode2() remove setActiveWindow()
2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: If3964a02e2de34cc257095e9f191e5ada600c9fb Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
This commit is contained in:
parent
1cc5af4550
commit
291a720d10
@ -2538,7 +2538,6 @@ void tst_QGraphicsView::viewportUpdateMode2()
|
|||||||
const QMargins margins = view.contentsMargins();
|
const QMargins margins = view.contentsMargins();
|
||||||
view.resize(200 + margins.left() + margins.right(), 200 + margins.top() + margins.bottom());
|
view.resize(200 + margins.left() + margins.right(), 200 + margins.top() + margins.bottom());
|
||||||
toplevel.show();
|
toplevel.show();
|
||||||
QApplicationPrivate::setActiveWindow(&toplevel);
|
|
||||||
QVERIFY(QTest::qWaitForWindowExposed(&toplevel));
|
QVERIFY(QTest::qWaitForWindowExposed(&toplevel));
|
||||||
QVERIFY(QTest::qWaitForWindowActive(&toplevel));
|
QVERIFY(QTest::qWaitForWindowActive(&toplevel));
|
||||||
QTRY_VERIFY(view.painted);
|
QTRY_VERIFY(view.painted);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user