tst_QWidget::appFocusWidgetWithFocusProxyLater remove setActiveWindow()
2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: I4a0d026fbe5da014723254bb9eb8d614cf50232f Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
This commit is contained in:
parent
7f48c79627
commit
706de2fe07
@ -2877,7 +2877,6 @@ void tst_QWidget::appFocusWidgetWithFocusProxyLater()
|
|||||||
QLineEdit *lineEdit = new QLineEdit(&window);
|
QLineEdit *lineEdit = new QLineEdit(&window);
|
||||||
lineEdit->setFocus();
|
lineEdit->setFocus();
|
||||||
window.show();
|
window.show();
|
||||||
QApplicationPrivate::setActiveWindow(&window);
|
|
||||||
QVERIFY(QTest::qWaitForWindowActive(&window));
|
QVERIFY(QTest::qWaitForWindowActive(&window));
|
||||||
QCOMPARE(QApplication::focusWidget(), lineEdit);
|
QCOMPARE(QApplication::focusWidget(), lineEdit);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user