tst_qcombobox: Don't use the deprecated QTest::qWaitForWindowShown()
Change-Id: I9a7a5f87e67e6d01d571097e8955d22bc86ca8d6 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
This commit is contained in:
parent
0a1af55a9b
commit
0c3ce60c99
@ -3215,12 +3215,12 @@ void tst_QComboBox::task_QTBUG_49831_scrollerNotActivated()
|
||||
box.setModel(&model);
|
||||
box.setCurrentIndex(500);
|
||||
box.show();
|
||||
QTest::qWaitForWindowShown(&box);
|
||||
QTest::qWaitForWindowExposed(&box);
|
||||
QTest::mouseMove(&box, QPoint(5, 5), 100);
|
||||
box.showPopup();
|
||||
QFrame *container = box.findChild<QComboBoxPrivateContainer *>();
|
||||
QVERIFY(container);
|
||||
QTest::qWaitForWindowShown(container);
|
||||
QTest::qWaitForWindowExposed(container);
|
||||
|
||||
QList<QComboBoxPrivateScroller *> scrollers = container->findChildren<QComboBoxPrivateScroller *>();
|
||||
// Not all styles support scrollers. We rely only on those platforms that do to catch any regression.
|
||||
|
Loading…
Reference in New Issue
Block a user