tst_QGraphicsProxyWidget::actionsContextMenu() remove setActiveWindow()
2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: Ib33b6d750a409e5a374fcbb42dbba646582be8a7 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
This commit is contained in:
parent
d8a022eec4
commit
f9751fe13f
@ -2992,7 +2992,6 @@ void tst_QGraphicsProxyWidget::actionsContextMenu()
|
|||||||
view.resize(200, 200);
|
view.resize(200, 200);
|
||||||
view.move(QGuiApplication::primaryScreen()->geometry().center() - QPoint(100, 100));
|
view.move(QGuiApplication::primaryScreen()->geometry().center() - QPoint(100, 100));
|
||||||
view.show();
|
view.show();
|
||||||
QApplicationPrivate::setActiveWindow(&view);
|
|
||||||
QVERIFY(QTest::qWaitForWindowActive(&view));
|
QVERIFY(QTest::qWaitForWindowActive(&view));
|
||||||
view.setFocus();
|
view.setFocus();
|
||||||
QTRY_VERIFY(view.hasFocus());
|
QTRY_VERIFY(view.hasFocus());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user