taskQTBUG_5008_textFromValueAndValidate() remove setActiveWindow()
2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 as made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: I472e5648f9ea7ba699477d44b2a67500af371410 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
This commit is contained in:
parent
2e3f607aae
commit
8b3620c93d
@ -1154,7 +1154,6 @@ void tst_QDoubleSpinBox::taskQTBUG_5008_textFromValueAndValidate()
|
||||
spinbox.show();
|
||||
spinbox.activateWindow();
|
||||
spinbox.setFocus();
|
||||
QApplicationPrivate::setActiveWindow(&spinbox);
|
||||
QVERIFY(QTest::qWaitForWindowActive(&spinbox));
|
||||
QCOMPARE(static_cast<QWidget *>(&spinbox), QApplication::activeWindow());
|
||||
QTRY_VERIFY(spinbox.hasFocus());
|
||||
|
Loading…
x
Reference in New Issue
Block a user