tst_QGraphicsView::wheelEvent() remove setActiveWindow()
2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: I0e16e556273bf03c42bad12fc3801c0848041a7c Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
This commit is contained in:
parent
13c941c5c2
commit
4eea3827f1
@ -2220,7 +2220,6 @@ void tst_QGraphicsView::wheelEvent()
|
|||||||
// Assign a view.
|
// Assign a view.
|
||||||
QGraphicsView view(&scene);
|
QGraphicsView view(&scene);
|
||||||
view.show();
|
view.show();
|
||||||
QApplicationPrivate::setActiveWindow(&view);
|
|
||||||
QVERIFY(QTest::qWaitForWindowExposed(&view));
|
QVERIFY(QTest::qWaitForWindowExposed(&view));
|
||||||
QVERIFY(QTest::qWaitForWindowActive(&view));
|
QVERIFY(QTest::qWaitForWindowActive(&view));
|
||||||
QCOMPARE(QApplication::activeWindow(), static_cast<QWidget *>(&view));
|
QCOMPARE(QApplication::activeWindow(), static_cast<QWidget *>(&view));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user