Wait for the window being active before sending it events
Change-Id: I2f5d6e37e630d70c4ba3ae81e807a89c447c8b26 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>bb10
parent
3658b62781
commit
83eb09d591
|
|
@ -483,6 +483,7 @@ void tst_QItemView::spider()
|
|||
view->setHorizontalScrollMode((QAbstractItemView::ScrollMode)hscroll);
|
||||
view->setModel(treeModel);
|
||||
view->show();
|
||||
QVERIFY(QTest::qWaitForWindowActive(view));
|
||||
#if defined(Q_OS_WINCE)
|
||||
srandom(0);
|
||||
#else
|
||||
|
|
|
|||
Loading…
Reference in New Issue