Ensure that this widget has focus before sending a keypress.
This doesn't fix the bug, but confirms that it is CI flakyness. Task-number: QTBUG-21098 Change-Id: Ic37a7574af88205371f4b2c24113d12b1386835c Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
This commit is contained in:
parent
b780196a95
commit
384eec86e5
@ -1667,6 +1667,8 @@ void tst_QListWidget::QTBUG14363_completerWithAnyKeyPressedEditTriggers()
|
||||
listWidget.show();
|
||||
listWidget.setCurrentItem(item);
|
||||
QTest::qWaitForWindowShown(&listWidget);
|
||||
listWidget.setFocus();
|
||||
QCOMPARE(qApp->focusWidget(), &listWidget);
|
||||
|
||||
QTest::keyClick(listWidget.viewport(), Qt::Key_C);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user