tst_QGraphicsView::wheelEvent() remove setActiveWindow()
2f6fe3a268 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>
bb10
parent
13c941c5c2
commit
4eea3827f1
|
|
@ -2220,7 +2220,6 @@ void tst_QGraphicsView::wheelEvent()
|
|||
// Assign a view.
|
||||
QGraphicsView view(&scene);
|
||||
view.show();
|
||||
QApplicationPrivate::setActiveWindow(&view);
|
||||
QVERIFY(QTest::qWaitForWindowExposed(&view));
|
||||
QVERIFY(QTest::qWaitForWindowActive(&view));
|
||||
QCOMPARE(QApplication::activeWindow(), static_cast<QWidget *>(&view));
|
||||
|
|
|
|||
Loading…
Reference in New Issue